Browse Source

Web: Fix Option usage in Select Element (#742)

* Fix Option usage in Select Element

* Remove the scope limitation

option could also be placed inside opt group, datalist and select
pull/751/head
Philip Wedemann 3 years ago committed by GitHub
parent
commit
6773408821
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web/core/src/jsMain/kotlin/androidx/compose/web/elements/Elements.kt

2
web/core/src/jsMain/kotlin/androidx/compose/web/elements/Elements.kt

@ -249,7 +249,7 @@ fun Select(
)
@Composable
fun DOMScope<HTMLUListElement>.Option(
fun Option(
value: String,
attrs: AttrBuilderContext<Tag.Option> = {},
content: ContentBuilder<HTMLOptionElement>? = null

Loading…
Cancel
Save