Skip to content

Commit ec8676f

Browse files
committed
[BOOK-501] refactor: 토끼 리뷰 반영
1 parent 376fe20 commit ec8676f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • core/common/src/main/kotlin/com/ninecraft/booket/core/common/extensions

core/common/src/main/kotlin/com/ninecraft/booket/core/common/extensions/Modifier.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ private class ClickableSingleNode(
9090

9191
override fun SemanticsPropertyReceiver.applySemantics() {
9292
onClick(label = onClickLabel) {
93-
if (enabled) {
94-
multipleEventsCutter.processEvent { this@ClickableSingleNode.onClick() }
95-
}
93+
if (!enabled) return@onClick false
94+
multipleEventsCutter.processEvent { this@ClickableSingleNode.onClick() }
9695
true
9796
}
9897
this@ClickableSingleNode.role?.let { this.role = it }
@@ -101,8 +100,6 @@ private class ClickableSingleNode(
101100
}
102101
}
103102

104-
override val shouldAutoInvalidate: Boolean = false
105-
106103
fun update(enabled: Boolean, onClickLabel: String?, role: Role?, onClick: () -> Unit) {
107104
this.enabled = enabled
108105
this.onClickLabel = onClickLabel

0 commit comments

Comments
 (0)