-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button inside nested with-bounds not firing #77
Comments
Works for me Screen.Recording.2023-05-03.at.17.54.49.mov |
That's even more worrying: Screen.Recording.2023-05-03.at.21.31.50.movYou can't even see that I'm clicking... (ns examples.broken-label
(:require [io.github.humbleui.ui :as ui]))
(def ui
(ui/with-bounds ::bounds-1
(ui/dynamic ctx [{:keys [width height]} (::bounds-1 ctx)]
(ui/column
(ui/button
#(println "ONE!!")
(ui/label "ONE"))
(ui/with-bounds ::bounds-2
(ui/dynamic ctx [{:keys [width height]} (::bounds-2 ctx)]
(let [width-part (quot width 10)]
(ui/width width-part
(ui/button
#(println "TWO!!")
(ui/label "TWO")))))))))) I've tested this against Any ideas? |
No ideas. Is this Linux? |
Macos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've managed to make a minimal repro case of a button on-click not firing:
Clicking on button
Two
,"TWO!!"
is not printed.Additionally is there a way to programatically detect text rendered or trigger buttons? I'm just wondering if I can use generative testing to create various nested UI and see if stuff breaks. It should help flush out more odd bugs like this.
The text was updated successfully, but these errors were encountered: