Changes between Initial Version and Version 1 of Ticket #14409
- Timestamp:
- Dec 7, 2011, 11:00:39 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14409
- Property Owner set to Douglas Hays
-
Property
Component
changed from
General
toDijit - Form
-
Property
Summary
changed from
Possible bug in FilteringSelect.
toFilteringSelect: required=true does not consider value="" valid
-
Ticket #14409 – Description
initial v1 3 3 So basically, If i use required:true the FilteringSelect does not consider value="" as an invalid option. Example. 4 4 5 {{{ 5 6 <select id="foo" data-dojo-type="dijit.form.FilteringSelect" data-dojo-props="required:true"> 6 7 <option value="">-Please Select-</option> 7 8 <option value="valid">valid option</option> 8 9 </div> 10 }}} 9 11 10 12 Examination of the isValid() function reveals. 11 13 14 {{{ 12 15 return this.item || (!this.required && this.get('displayedValue') == ""); // #5974 16 }}} 13 17 14 18 this.item is an object --> Object { name="-Please Select-", id="", value=""} 15 19 16 Since it is likely that this.item will always be an object of that nature... wouldn t this function always return true?20 Since it is likely that this.item will always be an object of that nature... wouldn't this function always return true? 17 21 18 22