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

Date input fields accept future dates as input #197

Open
NathanWEdwards opened this issue Jul 27, 2023 · 0 comments · Fixed by #193
Open

Date input fields accept future dates as input #197

NathanWEdwards opened this issue Jul 27, 2023 · 0 comments · Fixed by #193

Comments

@NathanWEdwards
Copy link
Collaborator

Date input fields accept future dates and supply future dates as input to methods.
Expunge_VT_max_date_3
Expunge_VT_max_date_1

Expected behavior:
Expunge_VT_max_date_2

A computed value may be added to each Vue component that displays date input. This computed value may then be provided to each date input element in the component:

export function maxDate() {
  let date = dayjs().format("YYYY-MM-DD");
  return date;
}
<input
    class="form-control"
    type="date"
    ...
    :max="maxDate"
/>
@NathanWEdwards NathanWEdwards linked a pull request Jul 27, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant