Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

if autogenerated <options>/checkboxes only work on every other search/render #22

Open
jeremybmerrill opened this issue Jul 6, 2016 · 1 comment

Comments

@jeremybmerrill
Copy link
Contributor

then put it in a setTimeout(function(){}, 0) so that the template is rendered first, then the autogen stuff checks for whether the /checkboxes are present in the page. (Otherwise, as is the case right now, the "old" options are still in the page, as the template is evaluated before replacing it, so the check doesn't work.)

@jeremybmerrill
Copy link
Contributor Author

ooh, maybe I should put the setTimeout in the generateOptions function, to reduce the boilerplate in user-written templates

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant