React-color: Provide Access to `onMouseUp` Event

Created on 11 Jan 2017  路  7Comments  路  Source: casesandberg/react-color

Hi, can we add mouseUp event? onChangeComplete its not enough because only when the user leave the mouse I want to do specific operation

enhancement help wanted need more info

Most helpful comment

Hi.
I would ask to implement onMouseDown instead of onClick on static color boxes.
Without onMouseDown event it is impossible to use colorpicker with selections.

When onClick Fired it resets selection and
document.execCommand('foreColor', false, color.hex) is impossible to use

Also before focus on texteditor nice to save selection and restore selection just before event is fired
.
Is it possible to implement?

All 7 comments

Yeah, fer sure!

Would you like the onMouseUp to fire after dragging a selector on the hue or saturation?

Are you still looking for this as a feature? If I understand correctly you want to be able to complete an action after a user releases the mouse on a slider? The current functionality handles that now because onChangeComplete will fire when a mouse is released.

Hi.
I would ask to implement onMouseDown instead of onClick on static color boxes.
Without onMouseDown event it is impossible to use colorpicker with selections.

When onClick Fired it resets selection and
document.execCommand('foreColor', false, color.hex) is impossible to use

Also before focus on texteditor nice to save selection and restore selection just before event is fired
.
Is it possible to implement?

Hi, is their any progress on this?

I will follow this issue
I just want to do something after I choose a color, but whatever i do, change or changeComplete happened, it troubles me

@ovasylenko same issue. is it supported now?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

imsheng picture imsheng  路  6Comments

daKmoR picture daKmoR  路  5Comments

nevendyulgerov picture nevendyulgerov  路  3Comments

stevenxxiu picture stevenxxiu  路  6Comments

louh picture louh  路  4Comments