mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-30 05:08:56 +00:00
LibWeb: Set select element text when an option is initially selected
Previously, a select element's text would initially be empty if the `selected` property was set on one of its options.
This commit is contained in:
committed by
Sam Atkins
parent
002eb0ad03
commit
4e383bdac1
@@ -323,9 +323,9 @@ void HTMLSelectElement::form_associated_element_was_inserted()
|
||||
auto options = list_of_options();
|
||||
if (options.size() > 0) {
|
||||
options.at(0)->set_selected(true);
|
||||
update_inner_text_element();
|
||||
}
|
||||
}
|
||||
update_inner_text_element();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user