Announcement

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

    DateChooser seems broken in 13.

    In 13 (currently on 13.0-d20210130), the DateChooser ignores calls to setData.

    test case:
    Code:
    public void onModuleLoad() {
            DateChooser begin = new DateChooser();
            Date beginDate = new Date();
            CalendarUtil.setToFirstDayOfMonth(beginDate);
            GWT.log("setting begin to: " + beginDate);
            begin.setData(beginDate);
            RootPanel.get().add(begin);
        }
    The date in question does not get selected in the chooser.

    Confirmed working in 12.

    #2
    This looks to have been a transient bug in 13.0, and isn't reproducible in more recent builds - there were also separate recent updates for DateChoosers, so you should update to the latest from smartclient.com/builds.

    Comment


      #3
      Right. The reason i did not upgrade was because the datetimeitem/dateitem was also broken when i upgraded to a recent build of 13, but i see that you say you have fixed it now, so i'll give it a go again.

      Comment


        #4
        I have now updated to 13.0-d20210407.

        While the bug i wrote about in another thread (that you cannot enter values in DateTimeItems) is fixed, the above code is not.

        The above test still results in that nothing is selected in the DateChooser, unfortunately. Please try yourselves. It would be really great if you had the time to look at this, we really need the datechooser in our app.
        Last edited by mathias; 12 Apr 2021, 03:13.

        Comment


          #5
          Which skin are you using? We see this working as expected with the default Tahoe skin in the build from April 10.

          Comment


            #6
            Never mind - we see the problem in the Enterprise skin. It's a timing issue - setData() isn't highlighting a grid-cell, because it's running before the grid itself has drawn.

            We've added a fix for builds dated April 13 and later.
            Last edited by Isomorphic; 12 Apr 2021, 07:00.

            Comment


              #7
              Thank you. I just spent almost an hour making sure i haven't missed something and was just about to write "hey you guys it DOESNT WORK!!!" :)

              Comment

              Working...
              X