Skip to content

Commit 89557f9

Browse files
kemister85metricjs
andauthored
TINY-12793: Deleting a selection in an li didn't trigger beforeinput (#4046)
* Docs: TINY-12793 - Deleting a selection in an `li` didn't trigger `beforeinput` * Update modules/ROOT/pages/8.4.0-release-notes.adoc Co-authored-by: Millie <millie.macdonald@tiny.cloud> --------- Co-authored-by: Millie <millie.macdonald@tiny.cloud>
1 parent 034e58c commit 89557f9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

modules/ROOT/pages/8.4.0-release-notes.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,12 @@ In {productname} {release-version}, an issue was identified where certain deleti
356356

357357
{productname} {release-version} addresses this by updating the key handler registration to occur during the `init` phase, and additional checks now ensure that previously prevented events are respected.
358358

359+
=== Deleting a selection in a `li` didn't trigger `beforeinput`.
360+
// #TINY-12793
359361

362+
Previously, deleting a selection inside a list item or pressing Backspace at the start of a list item did not fire the native `beforeinput` event. The editor's list key handler prevented the `keydown` event before performing the deletion, which also suppressed the `beforeinput` event. This affected integrations and plugins that relied on `beforeinput` to intercept or customize deletion behavior in lists.
363+
364+
In {productname} {release-version}, the editor now dispatches a synthetic `beforeinput` event before performing delete operations inside list items. Handlers can call `preventDefault()` on this event to intercept the deletion as expected.
360365

361366
[[security-fixes]]
362367
== Security fixes

0 commit comments

Comments
 (0)