Giter Site home page Giter Site logo

tossnet / blazor-color-picker Goto Github PK

View Code? Open in Web Editor NEW
30.0 2.0 9.0 9.62 MB

Opens a palette with the Material colors for Blazor application

License: GNU General Public License v3.0

HTML 27.30% C# 40.08% CSS 32.62%
blazor blazor-client color-picker blazor-component blazor-application blazor-server blazor-color-picker nuget material-colors palette

blazor-color-picker's People

Contributors

dylandhall avatar jwraats avatar tossnet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blazor-color-picker's Issues

.Net 5 with versions 1.1.1 has crash with SetFocus

Hello,

I updated to .net 5 on my project and version 1.1.1 of the color picker and when I try to initialize a blazor page I get a set focus error on blazor during initiliazation OnAfterRender first render. I think you probably have a JS script somehwere that defines a SetFocus method, and that's conflicting with the blazor js library.

Downgrading to 1.0.9 fixes the problem if anyone else experiences this. I can try to replicate if desired but basically just set up a project with version 1.1.1 through nuget

Opening modal causes Edit Form to invoke submit function

`EditForm Model="_class" OnSubmit="Submit">
div class="mb-3">
button class="btn btn-primary" @OnClick="OpenModal">
div style="background-color:@color" class="buttonColor"> Select a Color
/button>
ColorPicker Title="@_localizer["Color_pick"]" IsOpened="isOpened" Closed="ClosedEvent" MyColor="@color">/ColorPicker>
/div>
div class="mb-3">
button class="btn btn-primary" type="submit">Save
/div>
/EditForm>

        bool isOpened = false;
void OpenModal()
{        
    isOpened = true;
}

void ClosedEvent(string value)
{
    color = value;
    isOpened = false;
}`

if i click open modal the submit function is being invoked from edit form :)

Uncaught SyntaxError: Unexpected token 'export'

In Azure I've seen several exceptions Uncaught SyntaxError: Unexpected token 'export' coming from:

lineNumber 1
errorSrc window.onerror@https://foo.com/_content/BlazorColorPicker/colorpicker.js:1:1
url https://foo.com/_content/BlazorColorPicker/colorpicker.js
columnNumber 1
message: Uncaught SyntaxError: Unexpected token 'export'
typeName SyntaxError

when I browse to https://foo.com/_content/BlazorColorPicker/colorpicker.js I see:

export function SetFocusTo2 (element) {
    if (element instanceof HTMLElement) {
        element.focus();
    }
}

I guess the export keyword of the function is giving this issue.

.net 7
blazor server
BlazorColorPicker (2.3.0)

License

Hello,

Is it possible to add a license on this project?
Currently this project falls under no-license, which means:

If you find software that doesn’t have a license, that generally means you have no permission from the creators of the software to use, modify, or share the software. Although a code host such as GitHub may allow you to view and fork the code, this does not imply that you are permitted to use, modify, or share the software for any purpose.

Thx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.