Is this a known issue? When passing enabled = fals...
# compose
n
Is this a known issue? When passing enabled = false to a BasicTextField that was previously focused.
Copy code
java.lang.IllegalStateException: Use active SlotWriter to determine anchor location instead
        at androidx.compose.runtime.SlotTable.anchorIndex(SlotTable.kt:198)
        at androidx.compose.runtime.Anchor.toIndexFor(SlotTable.kt:466)
        at androidx.compose.runtime.Composer.invalidate$runtime_release(Composer.kt:1927)
        at androidx.compose.runtime.RecomposeScopeImpl.invalidateForResult(RecomposeScopeImpl.kt:111)
        at androidx.compose.runtime.RecomposeScopeImpl.invalidate(RecomposeScopeImpl.kt:117)
        at androidx.compose.foundation.text.CoreTextFieldKt$CoreTextField$onValueChangeWrapper$1.invoke(CoreTextField.kt:234)
        at androidx.compose.foundation.text.CoreTextFieldKt$CoreTextField$onValueChangeWrapper$1.invoke(Unknown Source:3)
        at androidx.compose.foundation.text.TextFieldDelegate$Companion.onBlur$foundation_release(TextFieldDelegate.kt:283)
        at androidx.compose.foundation.text.CoreTextFieldKt.notifyTextInputServiceOnFocusChange(CoreTextField.kt:664)
        at androidx.compose.foundation.text.CoreTextFieldKt.access$notifyTextInputServiceOnFocusChange(Unknown Source:0)
j
Please file a bug with a minimal repro.
n
Could you tell me how to focus/blur the BasicTextField? It would help in narrowing down the issue