diff options
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt index d33b53d9..57890a81 100644 --- a/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt +++ b/src/main/kotlin/pl/treksoft/kvision/dropdown/DropDown.kt @@ -65,19 +65,19 @@ open class DropDown(text: String, elements: List<StringPair>, icon: String? = nu } override fun afterInsert(node: VNode) { - this.getElementJQuery()?.on("show.bs.dropdown", { e, _ -> + this.getElementJQuery()?.on("show.bs.dropdown", { _, _ -> val event = CustomEvent("showBsDropdown", obj({ detail = button })) this.getElement()?.dispatchEvent(event) as Any }) - this.getElementJQuery()?.on("shown.bs.dropdown", { e, _ -> + this.getElementJQuery()?.on("shown.bs.dropdown", { _, _ -> val event = CustomEvent("shownBsDropdown", obj({ detail = button })) this.getElement()?.dispatchEvent(event) as Any }) - this.getElementJQuery()?.on("hide.bs.dropdown", { e, _ -> + this.getElementJQuery()?.on("hide.bs.dropdown", { _, _ -> val event = CustomEvent("hideBsDropdown", obj({ detail = button })) this.getElement()?.dispatchEvent(event) as Any }) - this.getElementJQuery()?.on("hidden.bs.dropdown", { e, _ -> + this.getElementJQuery()?.on("hidden.bs.dropdown", { _, _ -> val event = CustomEvent("hiddenBsDropdown", obj({ detail = button })) this.getElement()?.dispatchEvent(event) as Any }) |