Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dialog: opening a dialog without buttons crashes #78934

Closed
bpasero opened this issue Aug 12, 2019 · 2 comments · Fixed by microsoft/azuredatastudio#7206
Closed

Dialog: opening a dialog without buttons crashes #78934

bpasero opened this issue Aug 12, 2019 · 2 comments · Fixed by microsoft/azuredatastudio#7206
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug dialogs Issues with native and custom dialogs verified Verification succeeded
Milestone

Comments

@bpasero
Copy link
Member

bpasero commented Aug 12, 2019

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>)
@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug dialogs Issues with native and custom dialogs labels Aug 12, 2019
@sbatten
Copy link
Member

sbatten commented Aug 12, 2019

@bpasero do you know what the intended dialog was so I can just test what we do with native?

@bpasero
Copy link
Member Author

bpasero commented Aug 12, 2019

@sbatten yeah I made the about dialog available to web and simply wanted to test it without any button first. I am not sure native operating systems allow you to actually bring up dialogs without buttons, so having a default OK button seems about right.

@sbatten sbatten added this to the August 2019 milestone Aug 12, 2019
@bpasero bpasero added the verified Verification succeeded label Aug 30, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug dialogs Issues with native and custom dialogs verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants