Skip to content

Commit 72f566c

Browse files
committed
feat: clear input on push text
1 parent 9dc110a commit 72f566c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/example-web/src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ function App() {
234234
?.getHTML()
235235
.then((html) => {
236236
setEnrichedTextValue(html);
237+
ref.current?.setValue('');
237238
})
238239
.catch((error: unknown) => {
239240
setEnrichedTextValue('');
@@ -323,7 +324,7 @@ function App() {
323324
data-testid="set-enriched-text-value"
324325
onClick={handleSetEnrichedTextValue}
325326
>
326-
Set Enriched Text
327+
Push Text
327328
</button>
328329

329330
{showHtmlOutput && <HtmlOutputPanel html={currentHtml} />}

0 commit comments

Comments
 (0)