question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to type in year 'input' when flatpickr is inside bootstrap-vue modal

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] Bug report => search github for a similar issue or PR before submitting
[ ] Feature request
[ ] Other, please describe

Tell about your platform

  • nuxt version: 2.14.0
  • flatPickr version : 4.6.9
  • Vue.js version : 2.x
  • Browser name and version : Chrome|Firefox|Edge x.x.x
  • This package version : 8.1.6

Current behavior

Normally my Flatpickr input is in a common component which can be used without problems but when the Flatpickr input which is in b-modal (Bootstrap-Vue Modal) has a problem it cannot type in the field (year, hour or minute). when add ‘inline: true’ to config the input field is can type.

Expected behavior

Minimal reproduction of the problem with instructions

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
SoldierPePecommented, Jun 16, 2021

The problem is with tabindex in the bootstrap modal content tag you need to remove the attribute to fix the problem to fix the problem add these lines to App.vue

mounted() {
    this.$root.$on('bv::modal::shown', bvEvent => {
      bvEvent.vueTarget.$refs.content.attributes.removeNamedItem('tabindex')
    })
}

the attribute will be removed every time modal is opened

image

image

1reaction
ankurk91commented, Feb 20, 2021

Thanks, I will check in my day.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flatpickr inside of Bootstrap modal can not type in year input
When I open a Flatpickr entry within a modal, everything seems to work fine except for entering a year. When I want to...
Read more >
Cannot edit year field with bootstrap · Issue #2576
I cannot seem to edit the year field when using the datepicker inside a bootstrap modal. I am not sure what the issue...
Read more >
Form Input | Components
Create various type inputs such as: text, password, number, url, email, search, range, date and more.
Read more >
flatpickr issue inside modal
I used flatpickr datetime picker in my project and it works fine but when I use input inside a modal I can not...
Read more >
[Best solution]-Vue 2.0 bootstrap 3 datepicker component
I'm looking for something simple, to import in my child component, apply v-model on it and ready to go. score:0. Give a try...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found