Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Use inputField.value? instead of inputField.value!

天舟2a66998fcd78
diff --git a/frontend/src/bbkit/BBTextField.vue b/frontend/src/bbkit/BBTextField.vue
index dfb8a630b9..74fcb0d692 100644
--- a/frontend/src/bbkit/BBTextField.vue
+++ b/frontend/src/bbkit/BBTextField.vue
@@ -79,9 +79,10 @@ export default {
state.hasError = true;
nextTick(() => {
state.text = state.originalText;
- inputField.value!.focus();
+ // Since we set focus in the nextTick, inputField might already disappear due to outside state change.
+ inputField.value?.focus();
nextTick(() => {
- inputField.value!.select();
+ inputField.value?.select();
});
});
} else {