Announcement

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

    comboxitem changed called twice

    Using the latest lgpl version.

    Is normal this behaviour?

    When inside a changed event of a comboxitem i hide another field , then changed is called again.

    Code:
    changed: function(form, item, value) {
    
         var record = item.getSelectedRecord();
          myForm.getItem("aField").hide();
    }
    without the hide call , CHANGED is called one time and record is correctly defined.
    With the call to hide , changed is called twice and the second time the combobox field goes empty and record is undefined.

    Why?

    A little investigtion , looks like when a field is hidden al the form need to be repainted , but why changed its called again?
    Last edited by aranape; 23 Apr 2014, 00:26.

    #2
    for the records

    This happen in the chrome browser 34.0.1847.116 for linux
    and the same version for windows

    i cant test in another version of chrome.

    In firefox work okay. Problably you know why?

    Somebody?
    Last edited by aranape; 23 Apr 2014, 15:38.

    Comment

    Working...
    X