Skip to content

Commit

Permalink
[FEATURE] #125 : 설문 TextField 외부 클릭시 Focus 해제되도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Feb 16, 2024
1 parent 5684348 commit bc73e43
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalFocusManager
import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.wap.designsystem.WappTheme
import com.wap.designsystem.component.WappSubTopBar
import com.wap.designsystem.modifier.addFocusCleaner
import com.wap.wapp.core.commmon.extensions.toSupportingText
import com.wap.wapp.core.designresource.R.drawable
import com.wap.wapp.feature.management.survey.R
Expand Down Expand Up @@ -56,6 +58,7 @@ internal fun SurveyFormEditScreen(
var showDatePicker by remember { mutableStateOf(false) }
var showTimePicker by remember { mutableStateOf(false) }
var showDeleteSurveyDialog by remember { mutableStateOf(false) }
val focusManager = LocalFocusManager.current

LaunchedEffect(true) {
viewModel.getSurveyForm(surveyFormId)
Expand Down Expand Up @@ -97,6 +100,7 @@ internal fun SurveyFormEditScreen(
Column(
modifier = Modifier
.fillMaxSize()
.addFocusCleaner(focusManager)
.padding(paddingValues) // paddingValue padding
.padding(vertical = 16.dp, horizontal = 20.dp), // dp value padding
verticalArrangement = Arrangement.spacedBy(20.dp),
Expand Down

0 comments on commit bc73e43

Please sign in to comment.