:disabled attribute not working
See original GitHub issueI’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
- flatPickr version : 4.4.4
- Vue.js version : 2.5.2
- Browser name and version : Firefox 61
- This package version : 7.0.1
Current behavior
when I write script like this:
<flat-pickr v-model="item.DEPODT" input-class="date-input" :config="configflp" :disabled="!editmode"></flat-pickr>
and config:
configflp: {
altInputClass: 'p-0 text-center ',
},
then I change value of editmode to true, result: the component is still disabled
Expected behavior I expect the component respect disabled attribute
Thank you very much.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
HTML input "disabled" attribute not working in Bootstrap modals
The problem is, my browser (Chrome) is not reflecting the disabled attribute for any form element within the modal dialog.
Read more >HTML attribute: disabled - HTML: HyperText Markup Language
The Boolean disabled attribute, when present, makes the element not mutable, focusable, or even submitted with the form.
Read more >Topic: disabled attribute not working? / sciter
I'm using a custom checkbox with it's attribute disabled, but it does not act like a disabled input (you can still check and...
Read more >HTML disabled Attribute - W3Schools
The disabled attribute is a boolean attribute. When present, it specifies that the element should be disabled. A disabled element is unusable. The...
Read more >Input Disabled HTML Attribute Explained For Inexperienced ...
If a field is disabled , the value of the field is not sent to the server when the form is submitted. If...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Flatpickr creates two input fields (one is hidden) when we pass
altInput
totrue
.Vue component can only pass attributes to initial input field but flatpickr makes it hidden. So attributes like
:class
,:disabled
or:placeholder
can not be dynamic whenaltInput
istrue
In my case I need to use the altInput Option because I need to display different Date Formats.