Closed R3alCl0ud closed 2 months ago
Crash happens with at least Slint >=1.7.1 Haven't tested any older versions than this.
Thanks for filling an issue.
This is a problem with the PopupWindow. access to element inside the PopupWindow shouldn't be allowed. Property access already report errors, but we should also report errors for function access.
You can work around this by using an init
callback, btw:
popup-window := PopupWindow {
text-input := TextInput {
text: "Test Text";
}
init => { text-input.focus(); }
}
Hello, I'm experiencing a crash in the compiler itself when I try to compile my application with this component
Platform: Archlinux AMD64 Wayland (COSMIC Epoch) Programming Language: Rust
Steps to reproduce
Try to compile app with a component like the following
Expected behavior:
App compiles properly and text input is focused when the popup window is shown. or an error is shown showing why this is invalid code.
Console log from compiler crash
Other Relevant Stuff
Link to simple slintpad implementation of the crash: Slint Pad Focus Crash The preview will work until you click the button to open the popup window at which point the preview portion of the page hangs completely until you refresh the page.