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

Fix Window.prompt behavior. #587

Conversation

gdotdesign
Copy link
Member

  • Update return type to Promise(Maybe(String))
  • Only return Maybe::Nothing if the user cancelled the popup
  • Update documentation comment
  • Made the second argument (default value) optional

Should fix #540

- Update return type to `Promise(Maybe(String))`
- Only return `Maybe::Nothing` if the user cancelled the popup
- Update documentation comment
@gdotdesign gdotdesign added bug Something isn't working stdlib Standard library related labels Apr 26, 2023
@gdotdesign gdotdesign added this to the 0.18.0 milestone Apr 26, 2023
@gdotdesign gdotdesign requested a review from Sija April 26, 2023 13:01
@gdotdesign gdotdesign self-assigned this Apr 26, 2023
@gdotdesign gdotdesign linked an issue Apr 26, 2023 that may be closed by this pull request
@gdotdesign gdotdesign merged commit 8df67c0 into master Apr 26, 2023
@gdotdesign gdotdesign deleted the 540-windowprompt-should-distinguish-between-empty-ok-and-cancel branch April 26, 2023 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stdlib Standard library related
Development

Successfully merging this pull request may close these issues.

Window.prompt should distinguish between empty Ok and Cancel
2 participants