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 f5760b5 commit cfa6a26Copy full SHA for cfa6a26
shiny/ui/_toast.py
@@ -172,7 +172,8 @@ def tagify(self, id: Optional[str] = None) -> Tag:
172
return div(
173
{
174
"class": " ".join(classes),
175
- "id": id or self.id, # Override id if provided to tagify
+ # Override id if provided, or generate a random ID if missing
176
+ "id": id or self.id or _toast_random_id(),
177
},
178
*contents,
179
components_dependencies(),
0 commit comments