pIvan / ngx-color-picker

Pure Angular color picker library.
MIT License
96 stars 16 forks source link

Entering hexcode adds characters automatically #34

Closed RaminGe closed 3 years ago

RaminGe commented 3 years ago

Hey there 👋

We are having an issue with the hex input field. When I enter characters it keeps adding or "completing" the hex code as well as when you hit backspace to remove the numbers. Check this screen recording:

https://user-images.githubusercontent.com/16246664/123105291-fabe5700-d437-11eb-93bd-4eb26e7c2024.mov

The code used:

Template

<hex-input-component [(color)]="color"></hex-input-component>

Component

    private _color: Color = new Color('#000000');
    get color() {
        return this._color;
    }
    @Input() set color(newColor: Color) {
        this._color = newColor;
    }

We are on version 2.1.0

pIvan commented 3 years ago

Hi @RaminGe, thanks for reporting the problem, it will be fixed this week.

Kind regards, Ivan

pIvan commented 3 years ago

Hi @RaminGe, self-completing 3-character hexadecimal entry is removed, now it is available at enter press. Can you confirm if the behavior is ok?

RaminGe commented 3 years ago

Hey @pIvan, works like a charm, thank you for the fast support!