-
-
Notifications
You must be signed in to change notification settings - Fork 876
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
Issue when dropping data on line between timeslot #1062
Comments
Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider supporting me on Patreon |
Oh how weird, I can't think of a nice solution to this right now, but in the meantime you could use a debounce on the function call to prevent it yourself: https://stackblitz.com/edit/angular-yg9dnf?file=demo/component.ts Edit: possible solutions to try:
|
Hi @mattlewis92, Thank you for your answer I'll try that ASAP and of course I'll let you know if it fixed my issue. |
BREAKING CHANGE: if using a custom `headerTemplate` on the week view, then you must now add `let-dragEnter="dragEnter"` to the templates variables and `(dragEnter)="dragEnter.emit({ date: day.date })"` onto the `mwlDroppable` element. Closes #1062
I managed to find a fix for this, and it's in the next beta, you can try it with:
Hope that helps! 😄 |
Hi @mattlewis92 Well thank you very much for such a quick fix for this issue. Thanks :) |
Any date for a next release ? :D |
The last thing to do before I release 0.28 as stable is #888, but there are no more changes planned for the component itself, so please consider the beta version as being stable 😄 |
Great ! thanks again :) |
BREAKING CHANGE: if using a custom `headerTemplate` on the week view, then you must now add `let-dragEnter="dragEnter"` to the templates variables and `(dragEnter)="dragEnter.emit({ date: day.date })"` onto the `mwlDroppable` element. Closes #1062
BREAKING CHANGE: if using a custom `headerTemplate` on the week view, then you must now add `let-dragEnter="dragEnter"` to the templates variables and `(dragEnter)="dragEnter.emit({ date: day.date })"` onto the `mwlDroppable` element. Closes #1062
BREAKING CHANGE: if using a custom `headerTemplate` on the week view, then you must now add `let-dragEnter="dragEnter"` to the templates variables and `(dragEnter)="dragEnter.emit({ date: day.date })"` onto the `mwlDroppable` element. Closes #1062
BREAKING CHANGE: if using a custom `headerTemplate` on the week view, then you must now add `let-dragEnter="dragEnter"` to the templates variables and `(dragEnter)="dragEnter.emit({ date: day.date })"` onto the `mwlDroppable` element. Closes #1062
Describe the bug
Hi @mattlewis92 first I wanted to thank you for such a great calendar !
I've experienced an issue when I'm dropping data into to the calendar, somehow people are able to trigger the drop on the line between two time slots and it creates two events.
How could we manage and avoid that ?
Here below you can see the reproduction of the issue
Minimal reproduction of the problem with instructions
Get dragable data and drop it on the line between two time slots
Screenshots
Versions
@angular/core
:7.2.2angular-calendar
:0.27.7The text was updated successfully, but these errors were encountered: