Skip to content

Date input fields accept future dates as input #197

@NathanWEdwards

Description

@NathanWEdwards

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"
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions