md-color-picker icon indicating copy to clipboard operation
md-color-picker copied to clipboard

Disable autoselection of the value on open

Open amritk opened this issue 8 years ago • 4 comments

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?

amritk avatar Jul 05 '16 20:07 amritk

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.

brianpkelley avatar Jul 05 '16 22:07 brianpkelley

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

amritk avatar Aug 13 '16 00:08 amritk

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.

brianpkelley avatar Aug 13 '16 03:08 brianpkelley

sounds good, thanks

amritk avatar Aug 15 '16 18:08 amritk