Skip to content
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

Inline calendar with 'clock' viewMode gives error #2933

Open
4 tasks done
lvostinar opened this issue Sep 9, 2024 · 1 comment
Open
4 tasks done

Inline calendar with 'clock' viewMode gives error #2933

lvostinar opened this issue Sep 9, 2024 · 1 comment
Labels
State: Triage Tickets that need to be triaged. Type: Bug

Comments

@lvostinar
Copy link

Prerequisites

  • I have searched for duplicate or closed issues.
  • I have validated my setup against the latest version on StackBlitz.
  • I have read the contributing guidelines.
  • I understand that only sponsored issues will be worked on and that if I wish to sponsor an issue, I will contact the owner FIRST.

Describe the issue

Inline calendar with 'clock' viewMode gives error - doesn't display after updateOptions is used :

Cannot read properties of undefined (reading 'parentElement')

StackBlitz fork

https://stackblitz.com/edit/tempus-dominus-v6-simple-setup-zrlsxx?file=index.js

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of are you using? You can find this information from the sample StackBlitz.

6.9.4

What your browser's locale? You can find this information from the sample StackBlitz.

en

@lvostinar lvostinar added State: Triage Tickets that need to be triaged. Type: Bug labels Sep 9, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Tempus Dominus Sep 9, 2024
@roitto
Copy link

roitto commented Oct 1, 2024

I think that this bug is caused by the _showSetupViewMode method, which only updates the this.optionsStore.currentView = 'clock', but does not update the this.optionsStore.currentCalendarViewMode. I think the currentCalendarViewMode does not support clock.

  • There are no calendar modes for clock
  • OptionsStores refreshCurrentView method updates the currentView property based on the currentCalendarViewMode, which will update the currentView back to calendar from clock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
State: Triage Tickets that need to be triaged. Type: Bug
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants