Monday, June 30, 2014

Validation Bug & Fix for ItemSelector in UX form components of ExtJS 4.0.7

Validation Bug & Fix for ItemSelector in UX form components of ExtJS 4.0.7



  • Bug description: In ExtJS 4.0.7, the ux component of ItemSelector has a bug on validation of "blank value exemption". That is, if you have set the config "allowBlank" to "false", this should show invalid mark, when To List/Selected items list is blank, and should remove the invalid mark, when at least one element is added. But, once the invalid mark is shown for blank To List/Selected items list, it does not remove this mark on addition of 1st element from left to right. The mark is removed only if you click on the To List/Selected items list after you add the 1st item from left to right, OR when you add the second item from left to right.

  • Bug Fix: To fix this bug, in the ItemSelector.js file, add the following line as the last line of the function onAddBtnClick.
this.onToFieldChange();


No comments:

Post a Comment