-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make FormWidget read name/value from embedded <input> on creation.
Also create embedded <input> (aka this.valueNode) if it does not exist. The widget subclass should add this.valueNode to the DOM if it's not already there. It shoudn't call appendChild() unnecessarily though as that will break back-button support on IE. See deliteful/tests/functional/StarRating-formback.html for test. Also (if desired) the widget should set display:none on the <input>, either directly or via a stylesheet. Currently does not handle some complex cases, such as: * deliteful/Select should support an embedded <select> rather than <input> * deliteful/Checkbox and Radiobutton's embedded <input> also has "checked" property; should also sync that property. Fixes #394, refs #423 tangentially, refs ibm-js/deliteful#584 too.
- Loading branch information
Showing
3 changed files
with
33 additions
and
12 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