Skip to content

Commit 5b47847

Browse files
committed
Add a setter too for HTMLElement.value
1 parent 6b8f505 commit 5b47847

File tree

1 file changed

+4
-1
lines changed
  • compose-html-common/src/jsMain/kotlin/com/huanshankeji/compose/web/dom/ext

1 file changed

+4
-1
lines changed

compose-html-common/src/jsMain/kotlin/com/huanshankeji/compose/web/dom/ext/dom.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ import org.w3c.dom.HTMLElement
55
/**
66
* @see com.huanshankeji.compose.web.attributes.ext.onInput
77
*/
8-
val HTMLElement.value: String
8+
var HTMLElement.value: String
99
get() = asDynamic().value as String
10+
set(value) {
11+
asDynamic().value = value
12+
}

0 commit comments

Comments
 (0)