use diabled agaain

This commit is contained in:
Luc Mcgrady 2025-10-03 23:23:08 +01:00
parent 82de2078f5
commit f7b857887d
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

@ -58,15 +58,18 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<svelte:window onresize={updateHeight} /> <svelte:window onresize={updateHeight} />
<textarea <!-- svelte-ignore a11y_click_events_have_key_events -->
bind:this={taRef} <!-- svelte-ignore a11y_no_static_element_interactions -->
value={stringValue} <div on:click={onClick}>
on:blur={update} <textarea
class="w-100" bind:this={taRef}
placeholder={tr.deckConfigPlaceholderParameters()} value={stringValue}
readonly={clickCount < UNLOCK_EDIT_COUNT} on:blur={update}
on:click={onClick} class="w-100"
></textarea> placeholder={tr.deckConfigPlaceholderParameters()}
disabled={clickCount < UNLOCK_EDIT_COUNT}
></textarea>
</div>
<style> <style>
textarea { textarea {
@ -74,7 +77,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
overflow-y: auto; overflow-y: auto;
} }
textarea:read-only { textarea:disabled {
opacity: 0.75; pointer-events: none;
} }
</style> </style>