Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputField DatePicker: Update min/max defaults #1650

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions ppr-ui/src/components/common/InputFieldDatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
<BaseDatePicker
id="date-picker-calendar"
:defaultSelectedDate="defaultDate"
:setMinDate="new Date(minDate)"
:setMaxDate="new Date(maxDate)"
:setMinDate="minDate ? new Date(minDate) : null"
:setMaxDate="maxDate ? new Date(maxDate): null"
@selected-date="dateHandler"
/>

Expand Down Expand Up @@ -86,10 +86,6 @@ export default defineComponent({
initialValue: { type: String, default: '' },
minDate: { type: String, default: '' },
maxDate: { type: String, default: '' },
nudgeTop: { type: String, default: null },
nudgeBottom: { type: String, default: null },
nudgeRight: { type: String, default: null },
nudgeLeft: { type: String, default: null },
Comment on lines -89 to -92
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'nudges' are no longer a part of vuetify, they use offset objects of which we are not really using anymore.
Removing these until they are used/required.

hint: { type: String, default: '' },
persistentHint: { type: Boolean, default: false },
clearable: { type: Boolean, default: false }
Expand Down
Loading