Skip to content

Commit a492b87

Browse files
committed
kup-editor: displayed toolbar on focus when it's hidden.
1 parent 3c698c0 commit a492b87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/ketchup/src/components/kup-editor/kup-editor.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,11 @@ export class KupEditor {
355355
this.#hasChanges = false;
356356
}
357357
},
358+
focus: () => {
359+
if (!this.isReadOnly && !this.showToolbar) {
360+
this.showToolbar = true;
361+
}
362+
},
358363
},
359364
height: this.editorHeight ?? 'auto',
360365
hideModeSwitch: true,

0 commit comments

Comments
 (0)