mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 08:48:49 +00:00
LibWeb: Prevent select.click() opening the dropdown
No other browser allows opening the select element dropdown with the select.click() function. This change stops this happening in Ladybird.
This commit is contained in:
parent
c14dc77349
commit
564e546ff0
Notes:
sideshowbarker
2024-07-16 23:13:25 +09:00
Author: https://github.com/lukewarlow
Commit: 564e546ff0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/154
1 changed files with 3 additions and 2 deletions
|
@ -431,9 +431,10 @@ WebIDL::ExceptionOr<void> HTMLSelectElement::show_picker()
|
|||
return {};
|
||||
}
|
||||
|
||||
void HTMLSelectElement::activation_behavior(DOM::Event const&)
|
||||
void HTMLSelectElement::activation_behavior(DOM::Event const& event)
|
||||
{
|
||||
show_the_picker_if_applicable();
|
||||
if (event.is_trusted())
|
||||
show_the_picker_if_applicable();
|
||||
}
|
||||
|
||||
void HTMLSelectElement::did_select_item(Optional<u32> const& id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue