From ab4ab0855ffe339dd9a8c8f2c1fadac451287a99 Mon Sep 17 00:00:00 2001 From: arinming Date: Fri, 19 Jul 2024 03:18:54 +0900 Subject: [PATCH] =?UTF-8?q?[FEAT]=20=EA=B2=80=EC=83=89=20=ED=82=A4?= =?UTF-8?q?=EB=B3=B4=EB=93=9C=20=EC=95=84=EC=9D=B4=EC=BD=98=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designsystem/component/textfield/SearchTextField.kt | 6 ------ .../component/textfield/TerningBasicTextField.kt | 6 ++---- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/core/src/main/java/com/terning/core/designsystem/component/textfield/SearchTextField.kt b/core/src/main/java/com/terning/core/designsystem/component/textfield/SearchTextField.kt index 1c4039b2c..21d181551 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/textfield/SearchTextField.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/textfield/SearchTextField.kt @@ -3,7 +3,6 @@ package com.terning.core.designsystem.component.textfield import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.SolidColor -import androidx.compose.ui.text.input.ImeAction import com.terning.core.designsystem.theme.Grey300 import com.terning.core.designsystem.theme.Grey400 import com.terning.core.designsystem.theme.TerningMain @@ -33,11 +32,6 @@ fun SearchTextField( hintColor = Grey300, leftIcon = leftIcon, leftIconColor = TerningMain, - imeAction = if (text.isNotBlank()) { - ImeAction.Search - } else { - ImeAction.Done - }, enabled = enabled, readOnly = readOnly, onDoneAction = onDoneAction, diff --git a/core/src/main/java/com/terning/core/designsystem/component/textfield/TerningBasicTextField.kt b/core/src/main/java/com/terning/core/designsystem/component/textfield/TerningBasicTextField.kt index 49cb64610..31b547d61 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/textfield/TerningBasicTextField.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/textfield/TerningBasicTextField.kt @@ -46,7 +46,7 @@ fun TerningBasicTextField( strokeWidth: Float = 1f, leftIcon: Int? = null, leftIconColor: Color = TerningMain, - imeAction: ImeAction? = ImeAction.Done, + imeAction: ImeAction = ImeAction.Done, maxTextLength: Int? = null, showTextLength: Boolean = false, hint: String = "", @@ -66,9 +66,7 @@ fun TerningBasicTextField( onValueChange = onValueChange, singleLine = true, maxLines = 1, - keyboardOptions = KeyboardOptions( - imeAction = imeAction ?: ImeAction.Done - ), + keyboardOptions = KeyboardOptions(imeAction = imeAction), keyboardActions = KeyboardActions( onDone = { if (value.isNotBlank()) {