mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
use diabled agaain
This commit is contained in:
parent
82de2078f5
commit
f7b857887d
1 changed files with 14 additions and 11 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue