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

Receiving,- & releasing focussed style on datepicker (with extended config) #22

Closed
MarcoTroost opened this issue Oct 20, 2020 · 3 comments

Comments

@MarcoTroost
Copy link

Hi Elf-Mouse,

If one extends the (flatpickr) configuration for the datepicker, issues with the focussed style on the textfield seem to occur.

If I choose altinput: true (human readable date), the texfield never gets the focussed styling,

Schermafbeelding 2020-10-20 om 08 10 57

If I choose minDate: new Date().fp_incr(15) (15 days from today), the texfield never releases the focussed styling

Schermafbeelding 2020-10-20 om 08 11 23

full config:

config: {
                    altInput: true,
                    altFormat: "j F Y",
                    dateFormat: 'd-m-Y',
                    defaultDate: 'today',
                    minDate: new Date().fp_incr(15),
                    maxDate: new Date().fp_incr(100),
                    locale: lang.nl,
                    disable: [
                        function(date) {
                            return (date.getDay() === 0 || date.getDay() === 6);

                        }
                    ],
                },

kind regards,

Marco

@elf-mouse
Copy link
Member

elf-mouse commented Oct 20, 2020

Hi Marco,

Thanks for your issue.

It's a focused bug. I will fix it as soon as possible for the related extension components.

@elf-mouse
Copy link
Member

elf-mouse commented Oct 21, 2020

Hi Marco,

This bug has been fixed.

  • balm-ui@8.5.1 for Vue2
  • balm-ui@9.0.0-rc.4 for Vue3

You can update and try again :)

@MarcoTroost
Copy link
Author

Hi Elf-Mouse,

Thank you for the update. Bug is fixed!

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

No branches or pull requests

2 participants