A standardized browser-based spreadsheet editor and validator that can be run offline and locally, and which includes templates for SARS-CoV-2 and Monkeypox sampling data. This project, created by the Centre for Infectious Disease Genomics and One Health (CIDGOH), at Simon Fraser University, is now an open-source collaboration with contributions from the National Microbiome Data Collaborative (NMDC), the LinkML development team, and others.
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.
Follow up to #416
There are two main changes here:
destroyElements
we need to guard against calling thedestroy
method of the flatpickr instance if that reference is already gone. This can happen when changing templates.destroy
method in the editor'sclose
method. It's actually not necessary to do thatdestroy
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.