Subscribe on changes!

@click.native works only first time

avatar
Jan 7th 2022

Version

3.2.26

Reproduction link

replit.com

Steps to reproduce

  1. click in the dropdown
  2. select an item
  3. click in the dropdown again

What is expected?

the dropdown should open again in the 2nd time

What is actually happening?

the dropdown doesn't open


When the input event is emitted from the form-dropdown component the event listener for the click event doesn't work anymore. I suppose it's a bug with the vue compat handling the .native modifier

avatar
Jan 7th 2022

Can your provide this as a repository? I can neither edit nor download that code without registering for this service which I don't use.

avatar
Jan 7th 2022

sure, I can do it. I used that service since it's one of the suggested in the Vue 3 official docs and it was really hard to find one that I could setup the vue compat plugin. I'll create a repo for it now and share as soon as I get it.

Before sharing that link here I tested in incognito and it worked for me (without registering), you can click in the play button to run and in the "Show files" to see the code