Do not hide the input as this disables rendering the placeholder

This commit is contained in:
Xon 2024-08-19 10:06:23 +08:00
commit 5f77147262

View file

@ -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;
}