Skip to content

Commit e2c24ed

Browse files
committed
[fluent] Fix: Remove redundant textFieldModifier
The `textFieldModifier` was being applied twice in the `BasicTextField` and `BasicSecureTextField` components, once in the `TextField` itself and again within the basic text field implementations. This commit removes the redundant application from the basic text field implementations, as it's already handled in the `TextField` composable.
1 parent 202d27f commit e2c24ed

File tree

1 file changed

+3
-3
lines changed
  • fluent/src/commonMain/kotlin/io/github/composefluent/component

1 file changed

+3
-3
lines changed

fluent/src/commonMain/kotlin/io/github/composefluent/component/TextField.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ fun TextField(
115115
) {
116116
val color = colors.schemeFor(interactionSource.collectVisualState(!enabled, focusFirst = true))
117117
BasicTextField(
118-
modifier = modifier.textFieldModifier(shape),
118+
modifier = modifier,
119119
value = value,
120120
onValueChange = onValueChange,
121121
textStyle = LocalTextStyle.current.copy(color = color.contentColor),
@@ -255,7 +255,7 @@ fun TextField(
255255
) {
256256
val color = colors.schemeFor(interactionSource.collectVisualState(!enabled, focusFirst = true))
257257
BasicTextField(
258-
modifier = modifier.textFieldModifier(shape),
258+
modifier = modifier,
259259
state = state,
260260
textStyle = LocalTextStyle.current.copy(color = color.contentColor),
261261
enabled = enabled,
@@ -310,7 +310,7 @@ fun SecureTextField(
310310
) {
311311
val color = colors.schemeFor(interactionSource.collectVisualState(!enabled, focusFirst = true))
312312
BasicSecureTextField(
313-
modifier = modifier.textFieldModifier(shape),
313+
modifier = modifier,
314314
state = state,
315315
textStyle = LocalTextStyle.current.copy(color = color.contentColor),
316316
enabled = enabled,

0 commit comments

Comments
 (0)