We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6127ab2 commit 0e56b27Copy full SHA for 0e56b27
shiny/ui/_input_select.py
@@ -343,8 +343,10 @@ def _normalize_choices(x: SelectChoicesArg) -> _SelectChoices:
343
def _contains_html(x: _SelectChoices) -> bool:
344
for v in x.values():
345
if isinstance(v, Mapping):
346
- if _contains_html(cast(_OptGrpChoices, v)):
347
- return True
+ # Check the `_Choices` values of `_OptGrpChoices`
+ for vv in v.values():
348
+ if not is instance(vv, str):
349
+ return True
350
else:
351
if not isinstance(v, str):
352
return True
0 commit comments