brianpkelley / md-color-picker

Angular-Material based color picker
MIT License
254 stars 120 forks source link

How to update ngModel on colour click and not on select button? #89

Open ihanif opened 8 years ago

ihanif commented 8 years ago

Thanks for an excellent job on the colour picker @brianpkelley. I am trying to get the value of a selected colour on the mouseDown event (clicking on any of the colours) and not the 'Select' button. The requirement is that we should preview the chosen colour on our custom component before clicking the 'Select' button and closing the dialogue. Any suggestions to achieve this without changing the source code?

martskins commented 7 years ago

@ihanif Did you find a workaround for this?

brianpkelley commented 7 years ago

This has been fixed in 6ff793c47066cf121211c10dfa3b870ece0a0d29 Sorry, I'm not sure how to get the same functionality without modifying the source.

You can demo it here: http://labs.tastybytes.net/mdColorPicker/demo/