mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-09 01:56:21 +00:00
LibWeb: Update the <textarea> shadow DOM after reseting its form owner
This generally happens after a form is submitted. We need to update the text node in the shadow DOM to actually display the reset value.
This commit is contained in:
committed by
Andreas Kling
parent
c0d594568d
commit
9eb38ce79c
@@ -96,7 +96,10 @@ void HTMLTextAreaElement::reset_algorithm()
|
||||
// and set the raw value of element to its child text content.
|
||||
set_raw_value(child_text_content());
|
||||
|
||||
update_placeholder_visibility();
|
||||
if (m_text_node) {
|
||||
m_text_node->set_text_content(m_raw_value);
|
||||
update_placeholder_visibility();
|
||||
}
|
||||
}
|
||||
|
||||
void HTMLTextAreaElement::form_associated_element_was_inserted()
|
||||
|
||||
Reference in New Issue
Block a user