Announcement

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

    Disabling DateTimeItem.useSharedPicker results in incorrectly styled picker

    When I create a picker with "useSharedPicker: false" then it's incorrectly styled. It also looks like it doesn't get some of its defaults set.

    Version: v13.0p_2024-03-10/AllModules Development Only

    Reproduction code:
    Code:
    isc.DynamicForm.create({
      ID: "dateForm",
      fields: [
        {
          name: "date1", title: "Date1", type: "datetime"
        },
        {
          name: "date2", title: "Date2", type: "datetime",
          useSharedPicker: false,
          // this is to make issues more apparent
          pickerProperties: {
            buttonLayoutControls: ["nowButton", "todayButton", "cancelButton", "applyButton"],
            showNowButton: true,
            nowButtonDefaults: {
              title: "Now",
              padding: 2,
              autoFit: true,
              click: function () {
                this.creator.setData(new Date())
              }
            },
          },
        },
      ]
    });
    1. Show picker for Date2 - it's incorrectly styled, "Apply" button is missing.
    2. Show picker for Date1
    3. Show picker for Date2 - it's styled almost correctly, "Apply" button is still missing.

    Click image for larger version  Name:	picker.png Views:	0 Size:	45.2 KB ID:	271794

    #2
    Thanks for the report - we've made a change to address this for today's builds, dated March 11 and later.

    Comment


      #3
      I re-tested with v13.0p_2024-03-11. The "Apply" button is there, but styling is still broken - look at picker border in my original post. It's missing at first, and then it becomes black, instead of light-gray.

      Comment


        #4
        please ignore

        Comment


          #5
          hi Crack ,

          Thanks for the extra information. It wasn't clear what you meant by "it's incorrectly styled" - please do provide more information where possible in future reports.

          We've fixed these issues with the border and you can try out the changes in tomorrow's builds, dated March 12 or later.

          Comment


            #6
            Thanks for getting this fixed so quickly. And sorry for the confusion, I could have described the issue better.

            Comment

            Working...
            X