From 9c04916f4eaa70f49d8df5558519eefce4d85ace Mon Sep 17 00:00:00 2001 From: Oliver <480930+rivo@users.noreply.github.com> Date: Wed, 21 Dec 2022 18:28:51 +0100 Subject: [PATCH] Enabling mouse on Autocomplete demos. --- demos/inputfield/autocomplete/main.go | 2 +- demos/inputfield/autocompleteasync/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/inputfield/autocomplete/main.go b/demos/inputfield/autocomplete/main.go index 7459369..e3203e5 100644 --- a/demos/inputfield/autocomplete/main.go +++ b/demos/inputfield/autocomplete/main.go @@ -33,7 +33,7 @@ func main() { } return }) - if err := app.SetRoot(inputField, true).Run(); err != nil { + if err := app.EnableMouse(true).SetRoot(inputField, true).Run(); err != nil { panic(err) } } diff --git a/demos/inputfield/autocompleteasync/main.go b/demos/inputfield/autocompleteasync/main.go index b724329..6cf38ec 100644 --- a/demos/inputfield/autocompleteasync/main.go +++ b/demos/inputfield/autocompleteasync/main.go @@ -75,7 +75,7 @@ func main() { return nil }) - if err := app.SetRoot(inputField, true).Run(); err != nil { + if err := app.EnableMouse(true).SetRoot(inputField, true).Run(); err != nil { panic(err) } }