Skip to content

Commit

Permalink
fix altair not showing on initial open of the dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhsmit committed Oct 30, 2024
1 parent f6a762d commit caeebc0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dont_fret/web/bursts/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ def BurstPage():
for filter_item in state.filters.items:
FilterListItem(filter_item)

# if open_filter_dialog:
with solara.v.Dialog(
v_model=open_filter_dialog.value, max_width=1200, on_v_model=open_filter_dialog.set
):
with solara.Card(style={"width": "1190px"}):
FilterEditDialog()
# only place the dialog if its open otherwise altair chart won't show
if open_filter_dialog.value:
FilterEditDialog()
else:
pass

with solara.GridFixed(columns=2):
BurstFigure(
Expand Down

0 comments on commit caeebc0

Please sign in to comment.