Announcement

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

    IE11 calling focus on removed SelectItem

    Hi there

    I'm removing a DynamicForm and adding a new one to a HLayout.
    After removing it seems a wrong event is triggered
    This only happens in Internet Explorer. I can reproduce this behaviour with IE 11 (with latest update), but it also was reported with IE 9.
    This is a major issue for us. We are using this select and the shown event at a very cusomizable part of our application.

    IE11:
    Click image for larger version

Name:	Animation 41.gif
Views:	43
Size:	164.7 KB
ID:	235804

    All works finde with all the Current version of Firefox:
    Click image for larger version

Name:	Animation 42.gif
Views:	35
Size:	91.5 KB
ID:	235805

    Problem does occur with SmartClient_v101p_2016-03-10_Pro
    but not with SmartClient_v101p_2016-03-03_Pro.

    This is the code for reproduction.
    Code:
    function changeForm() {
        isc.showPrompt("...");
        setTimeout(function () {
            theLayout.removeMember("theForm1");
            theLayout.addMember(isc.DynamicForm.create({
                    "ID" : "theForm2",
                    "fields" :
                    [{
                            "ID" : "theSelect2",
                            "changed" : function (p1, p2, p3) {},
                            "name" : "theSelect2",
                            "title" : "Typ",
                            "type" : "select",
                            "valueMap" : {
                                1 : "Boolean",
                                2 : "Date"
                            }
                        }
                    ],
                    "values" : {
                        "theSelect2" : 2,
                    }
                }));
            isc.clearPrompt();
        }, 2000);
    }
    isc.Button.create({
        "ID" : "a",
        "click" : function () {
            theLayout.addMember(isc.DynamicForm.create({
                    "ID" : "theForm1",
                    "fields" :
                    [{
                            "ID" : "theSelect1",
                            "changed" : function (p1, p2, p3) {
                                changeForm();
                            },
                            "name" : "theSelect1",
                            "title" : "Typ",
                            "type" : "select",
                            "valueMap" : {
                                1 : "Boolean",
                                2 : "Date",
                            }
                        }
                    ],
                    "values" : {
                        "theSelect1" : 1,
                    }
                }));
        },
        "title" : "Action 1",
    });
    
    isc.HLayout.create({
        "ID" : "theLayout",
        top : "50",
        width : "100%",
        height : "300"
    });
    Best regards


    #2
    Any reaction to this?
    We are already in a feature freeze in our version, but we are blocked through this bug.
    Is there anything new about this bug?

    Edit: It's still reproducable in the latest nightly SmartClient_v101p_2016-03-16_Pro
    Last edited by SimonF; 16 Mar 2016, 08:54.

    Comment


      #3
      We've made a fix for this that will be applied to affected branches. It should be in the nightlies dated 2016-03-17 and later.

      Comment


        #4
        Very thanks, the fix is working like expected

        Comment

        Working...
        X