-
-
Notifications
You must be signed in to change notification settings - Fork 369
Colorpicker closing after selecting a color, when another picker is open #310
Comments
This is expected behavior. The same happens with browser's HTML select elements (combobox): If you use one, the other is collapsed. |
Sorry thats not what I was getting at. Let me try to explain it again. Given two dialogue boxes that each open separate colourpicker instances, clicking one dialogue box and choosing a colour, then immediately clicking into the other dialogue box, closes the first colourpicker instance (expected behaviour) and then opens and immediately closes the second colourpicker instance before allowing you to choose a colour (unexpected behaviour). This is a bug. I can try and record whats happening if you are still unsure. |
@itsjavi This is reproducible on the demo page as well: https://itsjavi.com/bootstrap-colorpicker/tutorial-Basics.html Repro steps;
As you say it's expected is that the first color picker is closed. All good here. However, what's not expected is that as soon as you interact with the new colorpicker, it closes immediately after that interaction. The expected behaviour is for it to stay open. Note that this does not happen when It's possible it might be a bug in popover, any thoughts on potential causes are welcome. Thanks! |
For your convenience, I've recorded the bug here: https://drive.google.com/file/d/1hbuxS7TpPK17wjwO-WYEjW-g0x5Mac0Z/view |
Thanks for the example, it's clearer now. I will reopen the issue. @macduy |
Description
Colorpicker closes on any click when you have navigated/clicked from another open colorpicker
Context
Expected behavior
Actual behavior
It should only close when the user has clicked outside of the second colorpicker.
It works correctly if you click outside of the first colorpicker anywhere on the page where another colorpicker won't be shown.
Live Example
Couldn't get jsfiddle to work with the links provided for a template.
Just create two input which each have a colorpicker.
Click on one to get the corresponding colorpicker to open.
Then click on the other input whilst the first colorpicker is still shown.
Then click anywhere on the second colorpicker and it will close
The text was updated successfully, but these errors were encountered: