disabled and selected is invalid
See original GitHub issue
example.ajax(function () {
fetch('http://localhost:3000/choices')
.then(function (response) {
response.json().then(function (data) {
console.log(data);
example.clearStore();
example.setValue( [{
value: '10',
label: '深圳',
disabled:false,
selected:true
},
{
value: '11',
label: '广州',
disabled:true,
selected:false
}])
});
})
.catch(function (error) {
console.log(error);
});
});
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Style invalid <select> using :invalid - Stack Overflow
Unfortunately the disabled select is not marked red. Any idea? It's not the option I like to style, I like to style the...
Read more >Objects getting invalid when constraint is disabled/enabled.
Hi, We have a problem of objects getting invalid when constraint is disabled and again enabled. We are using Oracle 11g with AIX...
Read more >Question: Howto make a "Select" Invalid · Issue #1454 - GitHub
Could you please explain how one should (dynamically) mark a "Select" as invalid (so that a red border is shown underneath) ?
Read more >aria-invalid - Accessibility - MDN Web Docs
The aria-invalid attribute is used to indicate that the value entered into an input field is not in a format or a value...
Read more >Range Disabled values Example | Mobiscroll
Be able to select a disabled date for the range end (useful for accommodation booking). Do you want to. Set invalid values. Set...
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
@jshjohnson Thanks
setValue()
only affects text inputs. You are looking forsetChoices()
.Thanks