Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4005

AutoHide of DatePicker breaks showOnFieldClick

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC7
    • Fix Version/s: 1.5.1
    • Component/s: wicket-datetime
    • Labels:
      None

      Description

      DatePicker: If autoHide is set to true then setting showOnFieldClick to true has no effect anymore. The calendar is shown and immediately closed if the user clicks on the textfield. This is caused due to a missing check in wicket-date.js.

      1. WICKET-4005.patch
        1 kB
        Christoph Leiter

        Activity

        Hide
        heapifyman heapifyman added a comment -

        Sorry, forget the last comment. The changes had not been picked up correctly by the server. It's working now.

        Show
        heapifyman heapifyman added a comment - Sorry, forget the last comment. The changes had not been picked up correctly by the server. It's working now.
        Hide
        heapifyman heapifyman added a comment -

        I updated to 1.5.1 and now showOnFieldClick seems to work but autoHide does not. Clicking in the field opens the datepicker but clicking anywhere else does not close it again.

        Show
        heapifyman heapifyman added a comment - I updated to 1.5.1 and now showOnFieldClick seems to work but autoHide does not. Clicking in the field opens the datepicker but clicking anywhere else does not close it again.
        Hide
        heapifyman heapifyman added a comment -

        OK. What's the ETA for 1.5.1?

        Show
        heapifyman heapifyman added a comment - OK. What's the ETA for 1.5.1?
        Hide
        mgrigorov Martin Grigorov added a comment -

        Yes, I confirm that bugs in RC7 are also in 1.5.0.
        RC8 is not released and wont be. The fixes in it will be part of 1.5.1.

        Show
        mgrigorov Martin Grigorov added a comment - Yes, I confirm that bugs in RC7 are also in 1.5.0. RC8 is not released and wont be. The fixes in it will be part of 1.5.1.
        Hide
        heapifyman heapifyman added a comment -

        Could it be that this is broken again in the 1.5 final release? If I set both autoHide and showOnFieldClick to true clicking in the field does not open the DatePicker. Only clicking the little calendar icon opens the DatePicker?
        Can someone confirm this? Or did I misunderstand the purpose of autoHide and showOnFieldClick?

        Show
        heapifyman heapifyman added a comment - Could it be that this is broken again in the 1.5 final release? If I set both autoHide and showOnFieldClick to true clicking in the field does not open the DatePicker. Only clicking the little calendar icon opens the DatePicker? Can someone confirm this? Or did I misunderstand the purpose of autoHide and showOnFieldClick?
        Hide
        mgrigorov Martin Grigorov added a comment -

        Fixed.
        Thanks!

        Show
        mgrigorov Martin Grigorov added a comment - Fixed. Thanks!
        Hide
        cleiter Christoph Leiter added a comment -

        Adding patch

        Show
        cleiter Christoph Leiter added a comment - Adding patch

          People

          • Assignee:
            mgrigorov Martin Grigorov
            Reporter:
            cleiter Christoph Leiter
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development