Skip to content

Commit 382fb9c

Browse files
committed
fix(inline-tool-link): use defaultValue to prevent selectionchange event
1 parent ba3deee commit 382fb9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/inline-tools/inline-tool-link.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export default class LinkInlineTool implements InlineTool {
212212
*/
213213
const hrefAttr = anchorTag.getAttribute('href');
214214

215-
this.nodes.input.value = hrefAttr !== 'null' ? hrefAttr : '';
215+
this.nodes.input.defaultValue = hrefAttr !== 'null' ? hrefAttr : '';
216216

217217
this.selection.save();
218218
} else {

0 commit comments

Comments
 (0)