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) } }