ionic-team / ionic-v1

The repo for Ionic 1.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
193 stars 187 forks source link

$ionicPopup.prompt bug when template string includes html elements #227

Open jacquesdev opened 7 years ago

jacquesdev commented 7 years ago

Short description of the problem:

$ionicPopup.prompt does not show the default input field if the template string includes html tags.

What behavior are you expecting?

I expect to be able to add html tags into the template string for example to emphasize some text in the body of the prompt.

Steps to reproduce:

  1. Create an $ionicPopup.prompt object
  2. Add a template template with html tags, e.g. template = 'foo bar'
  3. Expect to see the input element in the prompt, but am not seeing this.

Which Ionic Version? 1.x or 2.x Ionic v1.3.3, but same issue in v1.3.0 at least.

Plunker that shows an example of your issue

http://plnkr.co/edit/YLj0kS8eSvptcVvPtAU6?p=preview

Run ionic info from terminal/cmd prompt: (paste output below)

Your system information:

Cordova CLI: 6.4.0 Ionic CLI Version: 2.2.1 Ionic App Lib Version: 2.1.7 ios-deploy version: 1.9.0 ios-sim version: 3.1.1 OS: macOS Sierra Node Version: v4.2.4 Xcode version: Xcode 8.2.1 Build version 8C1002