Color picking same color
Opened this issue · 1 comments
civicwar commented
Hello,
When reusing the same ColorPicker dialog and the user chooses the same color again, the event colorPickerChange is not triggering.
How to replicate:
(All Colors are by default "Black")
- Create a shared ColorPicker
- Have two buttons to select color (B1 and B2)
- Select B1 (Shows ColorPicker with the model color Black)
- Select the Preset Color A (Triggers, colorPickerChange)
- Select B2 (Shows ColorPicker with the model color Black)
- Select the Preset Color A (Does Not Trigger colorPickerChange)
In the case when it does not trigger, if we switch from Preset Color B to Preset Color A again, it triggers.
Is it triggering only when there is a change in the previous trigger?
Best Regards!
sconix commented
That what the output name tells you, its and Change event. Thas how basically the model system works so it only triggers on change. If you are interested on the color even no change then maybe save it from dialog close event.