From 69fcfa08392d0fcca1bfbed5ad005273619a703a Mon Sep 17 00:00:00 2001 From: Alexei Anoshenko Date: Wed, 31 Aug 2022 22:22:19 +0300 Subject: [PATCH] Bug fixing --- dropDownList.go | 3 +++ editView.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dropDownList.go b/dropDownList.go index bc1f0d4..0f740c8 100644 --- a/dropDownList.go +++ b/dropDownList.go @@ -6,6 +6,9 @@ import ( "strings" ) +// DropDownEvent is the constant for "drop-down-event" property tag. +// The "drop-down-event" event occurs when a list item becomes selected. +// The main listener format: func(DropDownList, int), where the second argument is the item index. const DropDownEvent = "drop-down-event" // DropDownList - the interface of a drop-down list view diff --git a/editView.go b/editView.go index 73cf5f9..0ffe59e 100644 --- a/editView.go +++ b/editView.go @@ -137,7 +137,7 @@ func (edit *editViewData) remove(tag string) { if oldText != "" { edit.textChanged("") if edit.created { - edit.session.runScript(fmt.Sprintf(`setInputValue('%s', '%s')`, edit.htmlID())) + edit.session.runScript(fmt.Sprintf(`setInputValue('%s', '%s')`, edit.htmlID(), "")) } } }