quasarframework / quasar-ui-qcalendar

QCalendar - Quasar App Extension, Vue CLI plug-in and UMD distributions available
https://quasarframework.github.io/quasar-ui-qcalendar
MIT License
421 stars 116 forks source link

Time2 event is not disabled if i click on an event badge #398

Closed codingstuff91 closed 1 year ago

codingstuff91 commented 1 year ago

Describe the bug The "time2" event is fired even if there is an event badge displayed.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://codepen.io/codingstuff2812/pen/OJELvYX
  2. Click on the event i have created
  3. Go to the console and see that the time event is fired even if there is a badge on the time period

Expected behavior I dont want the "time2" event listener to be fired if i click on an event badge. How could i do that? Is there a way to disable the "time2" event listener if i click on an event badge?

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context I would like to be able to edit an event by clicking on the badge directly. But on the same time i want to be able to create a new event by clicking on a time period. Is there a way to do this easily? Maybe i am not using the plugin correctly... Could you please help me to understand what i am doing wrong. I thank you in advance for your reply

codingstuff91 commented 1 year ago

Hello,

I finally found the solution of my problem. I just have to add the .stop event modifier to the click event of my event badge to disable the "time2" event