mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-19 09:35:36 -05:00
fix the input box validation (#15634)
* fix the input box validation * fix one more place
This commit is contained in:
@@ -307,11 +307,11 @@ export class ServerGroupDialog extends Modal {
|
||||
|
||||
private validateInputs(): boolean {
|
||||
const renderedDialog = this.withRenderedDialog;
|
||||
let validate = renderedDialog.groupNameInputBox.validate();
|
||||
if (!validate) {
|
||||
const isNameValid = renderedDialog.groupNameInputBox.validate() === undefined;
|
||||
if (!isNameValid) {
|
||||
renderedDialog.groupNameInputBox.focus();
|
||||
}
|
||||
return validate;
|
||||
return isNameValid;
|
||||
}
|
||||
|
||||
// initialize the view based on the current state of the view model
|
||||
|
||||
Reference in New Issue
Block a user