mirror of
https://github.com/Choices-js/Choices.git
synced 2026-03-14 14:45:47 +01:00
Do not hide the input as this disables rendering the placeholder
This commit is contained in:
parent
00a328196b
commit
5f77147262
1 changed files with 0 additions and 2 deletions
|
|
@ -76,14 +76,12 @@ export default class Input {
|
|||
enable(): void {
|
||||
const el = this.element;
|
||||
el.removeAttribute('disabled');
|
||||
el.hidden = false;
|
||||
this.isDisabled = false;
|
||||
}
|
||||
|
||||
disable(): void {
|
||||
const el = this.element;
|
||||
el.setAttribute('disabled', '');
|
||||
el.hidden = true;
|
||||
this.isDisabled = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue