cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikhil Khandelwal (JIRA)" <>
Subject [jira] [Updated] (CB-11281) defaultText is not taken as input if no input by user
Date Tue, 17 May 2016 17:06:12 GMT


Nikhil Khandelwal updated CB-11281:
    Labels: Windows easy windows-universal  (was: easy windows-universal)

> defaultText is not taken as input if no input by user
> -----------------------------------------------------
>                 Key: CB-11281
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Dialogs
>    Affects Versions: 3.5.0
>         Environment: Windows 10
>            Reporter: Kai Schätzl
>            Priority: Minor
>              Labels: Windows, easy, easyfix, triaged, windows-universal
>             Fix For: Master
> Consider the case where you have a defaultText for navigator.notification.prompt, the
user sees it and then hits enter.
> With the original Javascript prompt dialog you get whatever's in the field as output.
var result = prompt ("Description", "Default Value");
> So, if the user enters nothing you get the default value given as your value in result.
> This is the expected behavior when mimicking this dialog.
> To my surprise, this is not what happens with navigator.notification.prompt. If the user
enters nothing then nothing is returned via results.input1. Although it looks like something
is already "sitting" there and waiting for submit.
> I think this behavior should be changed according to what the Javascript prompt dialog
does. That makes it consistent with browser behavior and what most people expect.
> This bug might be related to, where the
reporter seems to expect the opposite (not sure about that).

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message