vue-datepicker icon indicating copy to clipboard operation
vue-datepicker copied to clipboard

clickOutside with stopPropagation unstable in teleport mode

Open auirarrazaval opened this issue 10 months ago • 2 comments

Describe the bug In teleport mode, the click event is propagated if the value is changes more than once, despite setting the allowStopPropagation config to true

[EDIT] I believe it's actually any second click, as clicking the select button will also cause the event to be propagated

To Reproduce Steps to reproduce the behavior:

  1. Instantiate the component with teleport and allowStopPropagation, with autoApply: false.
  2. Open the calendar.
  3. Click on a date, then click on another date
  4. The click event is propagated to the background

Expected behavior If the initial event propagation is stopped, there's no reason as of why the second one shouldn't.

In my case, and as you can see below, this is an issue because the component overflows from a modal, which also has a clickOutside handler. This handler gets triggered because the second date update propagates the click and that causes the modal to close.

Screenshots

Image

Desktop & mobile (please complete the following information):

  • Browser: Chrome
  • Library version: 11.0.1

auirarrazaval avatar Jan 21 '25 00:01 auirarrazaval

@auirarrazaval I'm unable to reproduce the behaviour. Could you provide a link to the issue ?

sahilrajthapa avatar Mar 17 '25 19:03 sahilrajthapa

Stale issue message

github-actions[bot] avatar May 17 '25 03:05 github-actions[bot]

Stale issue message

github-actions[bot] avatar Aug 16 '25 03:08 github-actions[bot]

Should be fixed in latest release

Jasenkoo avatar Nov 02 '25 19:11 Jasenkoo