From 5f77147262363ea4618e2fa4c6c78a1b8f112676 Mon Sep 17 00:00:00 2001 From: Xon <635541+Xon@users.noreply.github.com> Date: Mon, 19 Aug 2024 10:06:23 +0800 Subject: [PATCH] Do not hide the input as this disables rendering the placeholder --- src/scripts/components/input.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/scripts/components/input.ts b/src/scripts/components/input.ts index 6b809ef5..e1817758 100644 --- a/src/scripts/components/input.ts +++ b/src/scripts/components/input.ts @@ -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; }