Skip to content

Dialog: opening a dialog without buttons crashes #78934

Closed
microsoft/azuredatastudio
#7206
@bpasero

Description

@bpasero

Looks like the custom dialog is not fit for when no buttons are provided. I wonder if in that case we should just always provide a default OK button.

image

TypeError: Cannot read property 'focus' of undefined
    at Promise (:9888/out/vs/base/browser/ui/dialog/dialog.js:154)
    at new Promise (<anonymous>)
    at Dialog.<anonymous> (:9888/out/vs/base/browser/ui/dialog/dialog.js:55)
    at Generator.next (<anonymous>)
    at :9888/out/vs/workbench/browser/web.main.js:10
    at new Promise (<anonymous>)
    at __awaiter (:9888/out/vs/workbench/browser/web.main.js:6)
    at Dialog.show (:9888/out/vs/base/browser/ui/dialog/dialog.js:53)
    at Proxy.<anonymous> (:9888/out/vs/platform/dialogs/browser/dialogService.js:82)
    at Generator.next (<anonymous>)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdialogsIssues with native and custom dialogsverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions