forked from kohler/hotcrp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redo Chrome workaround with a style-hidden text <input>.
This is slightly cleaner than the history-state mechanism. The style-hidden text <input> is restored by Chrome on navigation. * When saving the value, change the control's defaultValue. This causes Chrome to not generate a change event on navigation. But Chrome forgets the new defaultValue on navigation. So.... * Record the new defaultValue in an ____updates____ input, which cannot be type=hidden (Chrome forgets the values of hidden inputs on navigation) but can be type=text with style=hidden. On load, read the defaultValues from ____updates____ into the relevant controls. Ugh.
- Loading branch information
Showing
5 changed files
with
63 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters