mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Fix HTML editor not displaying properly when expanding field (#2792)
This commit is contained in:
parent
feaaaa230a
commit
01d5a9a3d2
2 changed files with 3 additions and 1 deletions
|
@ -736,6 +736,7 @@ the AddCards dialog) should be implemented in the user of this component.
|
||||||
>
|
>
|
||||||
<PlainTextInput
|
<PlainTextInput
|
||||||
{hidden}
|
{hidden}
|
||||||
|
fieldCollapsed={fieldsCollapsed[index]}
|
||||||
on:focusout={() => {
|
on:focusout={() => {
|
||||||
saveFieldNow();
|
saveFieldNow();
|
||||||
$focusedInput = null;
|
$focusedInput = null;
|
||||||
|
|
|
@ -43,6 +43,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
import { storedToUndecorated, undecoratedToStored } from "./transform";
|
import { storedToUndecorated, undecoratedToStored } from "./transform";
|
||||||
|
|
||||||
export let hidden = false;
|
export let hidden = false;
|
||||||
|
export let fieldCollapsed = false;
|
||||||
export const focusFlag = new Flag();
|
export const focusFlag = new Flag();
|
||||||
|
|
||||||
$: configuration = {
|
$: configuration = {
|
||||||
|
@ -116,7 +117,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
}
|
}
|
||||||
|
|
||||||
$: {
|
$: {
|
||||||
pushUpdate(!hidden);
|
pushUpdate(!(hidden || fieldCollapsed));
|
||||||
tick().then(() => {
|
tick().then(() => {
|
||||||
refresh();
|
refresh();
|
||||||
if (focusFlag.checkAndReset()) {
|
if (focusFlag.checkAndReset()) {
|
||||||
|
|
Loading…
Reference in a new issue