[iOS] Multiple select appearance doesn't update when selecting or deselecting rows...
[WebKit-https.git] / Source / WebCore / html / HTMLSelectElement.cpp
index 0a8602ee71c4969028dda60cf50bf84efec69482..6213dbdd2b2960d495dadc8b30650011c1f82812 100644 (file)
@@ -117,6 +117,8 @@ void HTMLSelectElement::optionSelectedByUser(int optionIndex, bool fireOnChangeN
     if (!usesMenuList()) {
         updateSelectedState(optionToListIndex(optionIndex), allowMultipleSelection, false);
         updateValidity();
+        if (auto* renderer = this->renderer())
+            renderer->updateFromElement();
         if (fireOnChangeNow)
             listBoxOnChange();
         return;