Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Last FormItemClickHandler() only is called for multiply PickerIcons in SelectItem

    Wherever I click on clearPicker or editPicker I get "Edit" message.

    Code:
    final PickerIcon clearPicker = new PickerIcon(PickerIcon.CLEAR, new FormItemClickHandler() {   
       public void onFormItemClick(FormItemIconClickEvent event) {   
          SC.say("Clear");
       }   
    });   
    
    final PickerIcon editPicker = new PickerIcon(new Picker("icons/16/iso/edit.png"), new FormItemClickHandler() {   
       public void onFormItemClick(FormItemIconClickEvent event) {   
          SC.say("Edit");
       }
    });
    
    final SelectItem item = new SelectItem("item");
    ...
    item.setIcons(clearPicker, editPicker);
    in case I put PickerIcons in the reverse order:

    Code:
    item.setIcons(editPicker, clearPicker);
    "Edit" message appears for editPicker and "Clear" for clearPicker.

    Is looks like SmartGWT bug.


    1. SmartClient Version: SNAPSHOT_v9.0d_2013-05-23/LGPL Development Only (built 2013-05-23)
    2. IE8, FF21

    #2
    This isn't reproducible against latest 9.0 code - it's probable that the changes to address your other recent issue have addressed this also - please retest this issue also with the latest build and, if this issue persists, show the entire code for the sample.

    Comment


      #3
      Hello Isomorphic

      Yes, I am still expirience the same problem on LGPL 4.0d 2013-05-25 build. Will try to create a test case.

      Comment

      Working...
      X