You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In bold the tag with the id for the selective element is a div that does not contain the label. So calling remove_ui('div:has(> #id)') will leave a stray label behind. The fix should just be moving the **TagList into the parent div.
The text was updated successfully, but these errors were encountered:
I can see that it'd be helpful in this case if the ID of the select input (or an attribute reflecting the ID of the select input) were higher up in the DOM structure.
Fortunately, for your use case, you can wrap the select element that you know you'll want to remove in a ui.div() with it's own ID that you can use in ui.remove().
Lines 212-239 _input_select.py
return div(
shiny_input_label(resolved_id, label),
div(
tags.select(
*choices_tags,
{"class": "shiny-input-select"},
class_=None if selectize else "form-select",
id=resolved_id,
multiple=multiple,
size=size,
),
(
TagList(
tags.script(
dumps(opts),
type="application/json",
data_for=resolved_id,
data_eval=dumps(extract_js_keys(opts)),
),
selectize_deps(),
)
if selectize
else None
),
),
class_="form-group shiny-input-container",
style=css(width=width),
)
Main Issue
In bold the tag with the id for the selective element is a div that does not contain the label. So calling remove_ui('div:has(> #id)') will leave a stray label behind. The fix should just be moving the **TagList into the parent div.
The text was updated successfully, but these errors were encountered: