Skip to content

Commit

Permalink
Temporary Fix for Modal panic issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
genusistimelord committed May 8, 2023
1 parent 5dd1df9 commit 91cfd01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/native/modal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,13 @@ where

let bounds = layout.bounds();
let position = Point::new(bounds.x, bounds.y);
let content = (self.content)();
content.as_widget().diff(&mut state.children[1]);

Some(
ModalOverlay::new(
&mut state.children[1],
(self.content)(),
content,
self.backdrop.clone(),
self.esc.clone(),
self.style,
Expand Down

0 comments on commit 91cfd01

Please sign in to comment.