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(), "")) } } }