mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +00:00
LibWeb: Fix selectionchange
event dispatch on text control elements
With a8077f79cc
Selection object is no
longer aware of selection state inside text controls (<textarea> and
<input>), so this change makes them responsible for dispatching
`selectionchange` if their selection state was changed.
This commit is contained in:
parent
3a6b698572
commit
e915143593
Notes:
github-actions[bot]
2024-11-01 14:07:07 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: e915143593
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2094
Reviewed-by: https://github.com/gmta ✅
7 changed files with 91 additions and 70 deletions
|
@ -192,8 +192,6 @@ protected:
|
|||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-textarea/input-relevant-value
|
||||
void relevant_value_was_changed();
|
||||
|
||||
virtual void selection_was_changed([[maybe_unused]] size_t selection_start, [[maybe_unused]] size_t selection_end) { }
|
||||
|
||||
private:
|
||||
void collapse_selection_to_offset(size_t);
|
||||
void selection_was_changed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue