mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-01 13:44:21 +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. (cherry picked from commit 564e546ff0bd78cc7ba770b53377457bf1ef88d6)
This commit is contained in:
parent
972f7581e9
commit
47bc8ecb0e
|
@ -431,8 +431,9 @@ WebIDL::ExceptionOr<void> HTMLSelectElement::show_picker()
|
|||
return {};
|
||||
}
|
||||
|
||||
void HTMLSelectElement::activation_behavior(DOM::Event const&)
|
||||
void HTMLSelectElement::activation_behavior(DOM::Event const& event)
|
||||
{
|
||||
if (event.is_trusted())
|
||||
show_the_picker_if_applicable();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue