Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Show picker on input focus together with colorpicker-input-addon #324

Open
novakben opened this issue Jan 8, 2021 · 2 comments
Open

Show picker on input focus together with colorpicker-input-addon #324

novakben opened this issue Jan 8, 2021 · 2 comments

Comments

@novakben
Copy link

novakben commented Jan 8, 2021

Description

Is there a built-in way to force colorpicker to open on text input focus and have the colorpicker-input-addon button? looked in the docs but couldn't find anywhere.

Context

  • bootstrap-colorpicker version: 3.2.0
  • bootstrap version: 4
  • jQuery version: 3.2

Expected behavior

When color picker input is in focus, colorpicker component opens even when you use the colorpicker-input-addon.

Actual behavior

colorpicker opens only when pressing on colorpicker-input-addon

Thanks!

@novakben novakben changed the title Show picker on input focus Show picker on input focus together with colorpicker-input-addon Jan 8, 2021
@itsjavi
Copy link
Owner

itsjavi commented Apr 23, 2021

This is builtin functionality since the library automatically detects the addon

Did you try using events and opening the picker on focus?

@Alf-Melmac
Copy link

I think what he meant here, and I support this request, is an 'allowInputToggle' option.
If this were set to True, I would not need to write an input listener that triggers the color picker. Some libraries that provide e.g. date or time selections offer this setting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants