Skip to content

Commit

Permalink
Merge pull request #332 from FranzForstmayr/dmc_old_version
Browse files Browse the repository at this point in the history
Use dmc.NotificationProvider only if dmc version is >= 0.14.0
  • Loading branch information
emilhe authored Jun 28, 2024
2 parents 96d7181 + 8be4f1e commit 2307f59
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 2307f59

Please sign in to comment.