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