Skip to content

Commit

Permalink
Use dmc.NotificationProvider only if dmc version is >= 0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FranzForstmayr committed Jun 11, 2024
1 parent 709eca8 commit 8be4f1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dash_extensions/enrich.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,8 @@ def notification_layout_transform(layout: List[Component]):
layout.append(html.Div(id=log_id))
if dmc.__version__ < "0.14.0":
layout.append(dmc.NotificationsProvider())
layout.append(dmc.NotificationProvider(zIndex=2000))
else:
layout.append(dmc.NotificationProvider(zIndex=2000))

return layout

Expand Down

0 comments on commit 8be4f1e

Please sign in to comment.