metafizzy / metafizzy/huebee

Adding on 'select' event or trigger 'change' event on color reselect.

Open
#25 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
411
Forks
43
PR merge metrics
No merged PRs in 30d

Description

Hi, thanks for this great script there.
I use Huebee to change element's color using the 'change' event and it is working perfectly.
When I try to change another element's color using the same currently selected color, the 'change' event is not triggered.
It is of course obvious that the 'change' event is not triggered when the color does not change.
However, I need some event to be triggered when user select a color, even when there is no change in the selected color.

One more thing, when I set the color programmatically using the `hueb.setColor(hex)` method, the 'change' event is also not triggered. If `staticOpen` option is not set, the 'selection' cursor does not point to the color set even though the color being set is on the (palette) list.

Would you consider this as a feature request?
Thanks.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Huebee event handling and the setColor(hex) entry point mentioned in the issue. Check how reselecting the current color and setting a color programmatically behave, then verify that the requested selection event or change notification and palette cursor behavior are covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.