Skip to content

Commit

Permalink
Add preventDefault() to prompt.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
dvorapa committed Jul 24, 2015
1 parent b935945 commit bae2cfc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/dialogs/prompt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Future<String> prompt([String message = "", String value = ""]) async {
c.complete(null);
promptDialog.closeDialog();
} else if (e is KeyboardEvent && e.keyCode == KeyCode.ENTER) {
e.preventDefault();
c.complete(input.value);
promptDialog.closeDialog();
}
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: dialog
version: 0.4.0+2
version: 0.4.1
description: Modern alert, confirm and prompt dialog implementation
author: Pavel Dvořák <[email protected]>
homepage: https://github.com/dvorapa/dialog-dart
documentation: http://www.dartdocs.org/documentation/dialog/latest/index.html#dialog
documentation:
environment:
sdk: ">=1.11.1 <2.0.0"
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Meta Name="author" Content="Pavel Dvořák">
<Meta Name="description" Content="Modern alert, confirm and prompt dialog implementation">
<Meta Name="keywords" Content="dialog,dart,alert,confirm,prompt,package,dvorapa">
<Meta Name="version" Content="0.4.0+2">
<Meta Name="version" Content="0.4.1">
<Link Type="text/css" Rel="stylesheet" Href="style.css">
<Title>Dialog.dart</Title>
</Head>
Expand Down

0 comments on commit bae2cfc

Please sign in to comment.