diff --git a/Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm b/Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm index da7212e6af64..c011424d5abc 100644 --- a/Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm +++ b/Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm @@ -564,12 +564,6 @@ - (UIMenu *)createMenu NSString *groupText = optionItem.text; NSMutableArray *groupedItems = [NSMutableArray array]; - if (groupText.length) { - UIAction *action = [UIAction actionWithTitle:groupText image:nil identifier:nil handler:^(UIAction *action) { }]; - action.attributes = UIMenuElementAttributesDisabled; - [groupedItems addObject:action]; - } - currentIndex++; while (currentIndex < _view.focusedSelectElementOptions.size()) { auto& childOptionItem = _view.focusedSelectElementOptions[currentIndex]; @@ -628,10 +622,6 @@ - (UIAction *)actionForOptionIndex:(NSInteger)optionIndex UIMenu *groupedMenu = (UIMenu *)menuElement; NSUInteger numGroupedOptions = groupedMenu.children.count; - // The first child of a grouped menu with a title represents the title, and is not a selectable option. - if (groupedMenu.title.length) - numGroupedOptions--; - if (currentIndex + numGroupedOptions <= (NSUInteger)optionIndex) currentIndex += numGroupedOptions; else