md-color-picker
md-color-picker copied to clipboard
Disable autoselection of the value on open
When the popup opens, it auto selects the value at the top. This brings up the keyboard when you are doing it on mobile. Is there anyway to disable this auto selection?
Thats a valid use case. Unfortunately, because mobile wasn't really in the scope of the app it was created for, it was definitely not a use case I was concerned with. I'll get this added as soon as I can.
If you pass in an options and throw an if statement around these lines, that should do the trick: https://github.com/brianpkelley/md-color-picker/blob/develop/src/js/mdColorPicker.js#L760-L761
This has been added in the plugin-rewrite. Unfortunately I'm swamped with work at the moment so it may be a few weeks before I wrap up the refactor.
https://github.com/brianpkelley/md-color-picker/blob/feature/Plugin-Rewrite/src/js/mdColorPicker.js#L470-L480
I'll add an option to disable the functionality as well.
sounds good, thanks