You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
start_date_with_time: {
conditions: [['use_time', true]],
type: 'date',
time: true,
default: dayjs().format(),
rules: [
{
required: ['use_time', true]
}
],
formatData(name, value) {
return { start_date: value };
},
extendOptions: {
// weekNumbers: true, // <- this is causing the error and flatpickr width will be 1px
allowInput: true,
position: 'above' // <- unrelated to this bug, but it seems this options isn't respected and doesn't work with vueform
},
}
Describe the bug
Conditional rendering on DateElements (at least when using schema object) doesn't render correctly with extendOptions. Not sure if it's actually a bug related to Flatpickr itself. The issue is with the config options weekNumbers. Displaying week numbers changes the width of the container so perhaps that's the reason. As an additional note, also config option position is not respected causing the flatpickr always to render below the input field.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
Use schema object with conditional rendering:
Describe the bug
Conditional rendering on DateElements (at least when using schema object) doesn't render correctly with extendOptions. Not sure if it's actually a bug related to Flatpickr itself. The issue is with the config options weekNumbers. Displaying week numbers changes the width of the container so perhaps that's the reason. As an additional note, also config option position is not respected causing the flatpickr always to render below the input field.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: