Skip to content

Touch Scrolling on inline calendar wrongfully triggers click events - bug introduced in 9.0.0 #1061

Closed
@exophunk

Description

@exophunk

Describe the bug
We use the inline calendar to show multiple calendar months below each other on a mobile device. Before, when scrolling (with touch) you could scroll the page containing the calendars normally. Version 8.8.1 was ok.

Starting with version 9, the touchstart event on top of a calendar item would trigger a click-event. So you basically cant scroll the page on top of a calendar without triggering a date selection.

This makes the calendar unusable in our case, as scrolling would automatically select any random date and with the range option, its almost impossible afterwards to select the right range.

To Reproduce

Reproduction: https://stackblitz.com/edit/vuepic-vue-datepicker-4aj8ctal?file=src%2Fcomponents%2FPlayground.vue

Steps to reproduce the behavior:

  1. Use with mode "multi calendar" and "inline
  2. Open on a touch device or on simulator with touch.
  3. Make window narrow
  4. try to scroll down with touch + drag
  5. Try to scroll down without selecting dates. not possible

Expected behavior
I expect to use inline calendar on mobile without accidental clicks when scrolling

Desktop & mobile (please complete the following information):

  • Mobile or Touch (firefox/ safari/chrome)
  • Lib Version 9+
  • Version 8.8.1 OK!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions