Opened 12 years ago

Last modified 10 years ago

#9537 closed defect

ComboBox and FilteringSelect does not allow options with same value with different case to be selected onChange or onBlur — at Initial Version

Reported by: vmanchal Owned by: anonymous
Priority: high Milestone: tbd
Component: Dijit - Form Version: 1.0
Keywords: case senstive options Cc: [email protected]
Blocked By: Blocking:

Description

The FilteringSelect? widget does not allow the user to select the same value with different case whether it's onChange or OnBlur?. For example, if the options are values "value1", "VALUE1", "value2", "value3"...so on. After user selects "value1", if the user selects "VALUE1" from the dropdown list, the value reverts back to "value1" again. This happens on all browser and all platforms.

######## code snippet from dijit.form.ComboBox? widget ############## _onBlur: function(){

summary: called magically when focus has shifted away from this widget and it's dropdown this._hasFocus=false; this._hasBeenBlurred = true; this._hideResultList(); this._arrowIdle(); if the user clicks away from the textbox OR tabs away, set the value to the textbox value #4617: if value is now more choices or previous choices, revert the value var newvalue=this.getDisplayedValue();

if(this._popupWidget&& (newvalue==this._popupWidget._messagespreviousMessage?
newvalue==this._popupWidget._messagesnextMessage?)){

this.setValue(this._lastValueReported, true);

}else{

this.setDisplayedValue(newvalue);

}

},

########################################

If the else part is commented, everything works fine as expected.

Change History (0)

Note: See TracTickets for help on using tickets.