Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11218

Prompt method should not crash if a string is passed as button value

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            zellman Andrew Zellman
            zellman Andrew Zellman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: