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} />
|
<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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue