[ 
https://issues.apache.org/jira/browse/CB-11218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15274506#comment-15274506
 ] 

Jesse MacFadyen commented on CB-11218:
--------------------------------------

I have assigned it to you [~zellman] This case should be handled in JavaScript 
so the fix will apply to all platforms.
The confirm method already handles this case [1] but the prompt method 
currently does not.


[1] 
https://github.com/apache/cordova-plugin-dialogs/blob/master/www/notification.js#L70

> Prompt method should not crash if a string is passed as button value
> --------------------------------------------------------------------
>
>                 Key: CB-11218
>                 URL: https://issues.apache.org/jira/browse/CB-11218
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Dialogs
>         Environment: iOS
>            Reporter: Andrew Zellman
>            Assignee: Andrew Zellman
>              Labels: easyfix
>
> The prompt method expects an array as an argument in the command array, but 
> there is no input validation requiring that it be an array. A string makes 
> just as much sense for a single-button dialog, but if the API user sends a 
> string, it crashes. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to