-
Notifications
You must be signed in to change notification settings - Fork 53
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
Open Record Card on Calendar event click #122
Conversation
✅ Deploy Preview for boisterous-sunburst-a5c941 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, one question only.
@@ -218,6 +218,7 @@ class CalendarHandler { | |||
TZDate = this.calendar.getDate().constructor; | |||
|
|||
this.calendar.on('clickEvent', async (info) => { | |||
focusWidget(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this, the calendar widget doesn't get focus if you click or double-click an event. This breaks the new viewAsCard
command because it opens the selected record in the active section, and if the calendar isn't the active section, the wrong record is shown in the popup.
New test will fail temporarily until the Grist image is updated with support for opening a Record Card from a custom widget.