Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Haydon Gunn 1 post 71 karma points
    Feb 23, 2022 @ 04:16
    Haydon Gunn
    0

    Using umb-date-time-picker with no-dirty-check

    I've set up a content app which uses the <umb-date-time-picker> control to give the user a way of selecting a date range to filter some data I'm displaying in the content app. It's all working well, however, I've discovered that once the date picker is used by the user, it's now flagged as a dirty form and so when the user navigates away, they're prompted with the 'you have unsaved changes' dialog. Even with using the 'no-dirty-check'

    Code looks like:

    <umb-date-time-picker 
        ng-model="vm.dateRange"
        options="vm.datePickerConfig"
        on-change="vm.datePickerChange(selectedDates, dateStr, instance)" 
        no-dirty-check>
    </umb-date-time-picker>
    

    On a standard <input> adding the 'no-dirty-check' property inline prevents this from happening as expected, but on the umb-date-time-picker, it doesn't attach it to the actual input and so it doesn't prevent the behaviour.

    Is there something I'm missing or an extra step I might have to do here?

  • Angel 49 posts 105 karma points
    Oct 10, 2023 @ 17:31
    Angel
    0

    hi there - did you find a solution to this?

Please Sign in or register to post replies

Write your reply to:

Draft