LibWeb: Update the select label when option's children are changed

This commit is contained in:
Gingeh 2025-01-10 19:35:03 +11:00 committed by Andreas Kling
commit 58c78cb003
Notes: github-actions[bot] 2025-01-19 18:23:33 +00:00
2 changed files with 23 additions and 7 deletions

View file

@ -52,8 +52,10 @@ private:
virtual void inserted() override;
virtual void removed_from(Node*) override;
virtual void children_changed() override;
void ask_for_a_reset();
void update_selection_label();
// https://html.spec.whatwg.org/multipage/form-elements.html#concept-option-selectedness
bool m_selected { false };