Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@blur event not firing, when clicked/typed within the input fields #248

Open
decoded-cipher opened this issue Jun 16, 2023 · 1 comment
Open

Comments

@decoded-cipher
Copy link

decoded-cipher commented Jun 16, 2023

We were working on a graphic editor somewhat like Canva, and we rely upon this package a lot.
We use blur event in vue to close the color-picker when someone clicks outside the modal. And as expected, it works fine just fine except in one single condition.

Issue

  • If we click/type within the input fields (HEX and RGBA) and then click outside to close the modal, the blur event won't get triggered, unless we click within the modal somewhere else to regain the focus and then click outside to close it.
<ColorPicker
  :color="color"
  @changeColor="changeColor"
  theme="dark"
  class="colorpicker-box"
  @blur="close"
  :colors-default="[
    'null',
    '#FFFFFF',
    '#FF1900',
    '#F47365',
    '#FFB243',
    '#FFE623',
    '#6EFF2A',
    '#1BC7B1',
    '#00BEFF',
    '#2E81FF',
    '#5D61FF',
    '#FF89CF',
    '#FC3CAD',
    '#BF3DCE',
    '#8E00A7',
    'rgba(0,0,0,0)',
  ]"
/>
@JithinAji
Copy link

I am also facing the same issue.

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

No branches or pull requests

2 participants