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

More date editor keyboard copy bug fixes #417

Merged
merged 3 commits into from
Nov 9, 2023

Conversation

pkalita-lbl
Copy link
Collaborator

Follow up to #416

There are two main changes here:

  • In destroyElements we need to guard against calling the destroy method of the flatpickr instance if that reference is already gone. This can happen when changing templates.
  • I removed the call to the destroy method in the editor's close method. It's actually not necessary to do that destroy so often. The main thing that was trying to work around was the fact that the CopyPaste plugin apparently sets the value of the cell inputs to a space (" ") sometimes. I don't really know why but it is mentioned here in one of the built-in editors. The key is it not let that screw up date parsing and formatting. So I've adjusted the flatpickr settings to more gracefully handle the space.

Unrelated, I'm also adding the entire .idea directory to .gitignore. I find sharing any of these IDE files to cause more trouble than it's worth.

@ddooley ddooley merged commit 14532f6 into master Nov 9, 2023
1 check passed
@ddooley ddooley deleted the fix-date-editor-keyboard-copy-2 branch November 9, 2023 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants