mirror of
https://github.com/InsanusMokrassar/JSUIKitKBindings.git
synced 2026-11-01 17:02:57 +00:00
refactor invoke functions
This commit is contained in:
1 parent
c81c1125a0
commit
3c7f17523b
4 files changed
+14
-9
No files matched your search
@@ -17,7 +17,7 @@ private class DialogDisposableEffectResult(
|
||||
) : DisposableEffectResult {
|
||||
override fun dispose() {
|
||||
onDispose?.invoke()
|
||||
js("UIkit").modal("#${element.id}") ?.hide()
|
||||
UIKit.modal("#${element.id}") ?.hide()
|
||||
onDisposed?.invoke()
|
||||
}
|
||||
}
|
||||
@@ -99,7 +99,7 @@ fun Dialog(
|
||||
}
|
||||
htmlElement.addEventListener("hidden", wrapper)
|
||||
|
||||
UIKit.modal("#${htmlElement.id}").show()
|
||||
UIKit.modal("#${htmlElement.id}") ?.show()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user