Announcement

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

    Bug with showPendingEdits and Chrome

    The showPendingEdits(true) seems to have a bug with chrome.

    Please a look at this screencast:
    Click image for larger version  Name:	WVODU5zJT0.gif Views:	1 Size:	28.1 KB ID:	253521
    First, I have "abc". Then, I edit it to "abcdef". Everything correct until now. Then I save. After saving, if I edit the value again to "abc", the pending style disappears.
    In firefox it seems to work correctly.

    Here my code:
    Code:
    public void onModuleLoad() {
    
            final VLayout vlayout = new VLayout();
    
            DynamicForm df = new DynamicForm();
            ValuesManager vm = new ValuesManager();
    
            TextItem vorname = new TextItem("f_vorname", "First name");
            vorname.setShowPending(true);
            df.setFields(vorname);
    
            IButton saveButton = new IButton("Save");
    
            saveButton.addClickHandler(event -> vm.saveData());
    
    
            vm.setDataSource(DataSource.get("schueler"));
            df.setValuesManager(vm);
    
            Criteria c = new Criteria();
            c.addCriteria("f_schueler_id", 10788);
            vm.fetchData(c);
    
            vlayout.addMembers(df, saveButton);
            vlayout.setWidth100();
            vlayout.setHeight100();
            vlayout.draw();
    
        }
    Using smartgwt 6.1p 04.06.18 power and Chrome Version 66.0.3359.181

    Edit: Using Chrome Version 67.0.3396.62 (Offizieller Build) (64-Bit) it is the same behavior.
    Last edited by edulid; 5 Jun 2018, 08:11.

    #2
    Hi Isomorphic
    have you been able to reproduce the issue?

    Comment


      #3
      Yes. We're looking into it.

      Comment


        #4
        We've been using our own code to reproduce this bug as your example is incomplete - you didn't include the definition or data for the DataSource "schueler." You may want to add the missing pieces so that we can actually verify against your situation when our fix is ready.

        Comment


          #5
          Hi Isomorphic
          I think this is data independent, since I have been observing this behavior with all data.

          But, as you request, for completeness: the datasource is available here in the second related bug: https://forums.smartclient.com/forum...bset-correclty
          For data, only set an id (in my case f_schueler_id = 10788) and f_vorname = 'abc'.

          Have you been also able to reproduce the second bug ?

          Regards,
          edulid

          Comment


            #6
            This has been fixed back to SGWT 5.1p/SC 10.1p. For SGWT 6.1p/SC 11.1p and newer, the fix should be in today's builds, dated 2018-06-13. For the older branches, check tomorrow's builds.

            Comment

            Working...
            X