IonicPopup - Internet Explorer - Fire 2 times


#1

I know that Internet Explorer is not fully supported.

This code “fires” the popup 2 times in IE. Any solution?

$ionicPopup.alert({
title: ‘Aviso’,
template: ‘Não está ligado à Internet’
});

Thanks
Baltazar


#2

Could you test if this is related to [Solved] ngClick firing twice ?


#3

The forum relates a “global” error. Happens in all browsers.

The error is only on IE…


#4

Good point. Does it happen with other things then popups?


#5

What others? :blush:

I have only see this

:smiley:


#6

I had to be more specific :open_mouth: Any clicks, events, anything :wink: Any clickhandler firing twice etc?


#7

I think not. In IE Mobile (Windows Phone) only “fire” one time.

My Code

HTML

        <form ng-submit="login()">
            <label class="item item-input">
                <span class="input-label">Username:</span>
                <input id="username" type="text" ng-model="txtUsername">
            </label>
            <label class="item item-input">
                <span class="input-label">Password:</span>
                <input id="password" type="password" id="txtPassword" ng-model="txtPassword">
            </label>

            <!-- -->

            <div class="card">
                <div class="item item-divider">
                    Layout
                </div>
            </div>

            <ion-radio ng-repeat="item in Layouts" ng-value="item.value" ng-model="data.LayoutSeleccionado">
                {{ item.text }}
            </ion-radio>

            <button type="submit" class="button button-block button-small button-outline button-positive" value="Login">Login</button>

        </form>
    </div>

JS

if ($scope.txtUsername == “” || $scope.txtPassword == “”) {

        $ionicPopup.alert({
            title: '<b>Aviso</b>',
            template: 'Preencha os Dados'
        });
        throw ("Sem Dados"); // "morre" aqui
    }

#8

Same behavior here

http://ionicframework.com/docs/api/service/$ionicPopup/


#9

Aye, confirmed:

http://ionicframework.com/docs/api/service/%24ionicPopup/ gives double popup in internet explorer (desktop). Since this is a browser I have to put up support for, I will look into it. If I find the reason or the fix, I’ll let you know!

@ionicteam is there any reason known at your office?

Edit: Just checked, IE edge version (win 8) gives double popup, IE 10 (win 7 and win 8) has expected behaviour, while IE 9 (win 7, win 8 and win 8 edge version emulator) gives errors and makes popups unusable.


#10

Just a heads up, we’re only supporting webkit based browser right now, so chrome or safari. We’re not focusing on IE, or IE for WP8, at the moment but it is on our road map for post 1.0.

There are a lot of little things that IE does that we need to spend some time fixing.


#11

Is there any date to the post 1.0?


#12

Not really. We’re not big on putting dates on things


#13

Ok… Thanks. Waiting for the WP platform is supported by Ionic…


#14

You can dd this property on your tag to avoid it from firing twice - data-tap-disabled=“true”


#15

Hey guys. Im with the latest versin of ionic 1.x and Ive been facing with this on IE. Could you help me?


#16

I have used SweetAlert. It works great in IE.

http://t4t5.github.io/sweetalert/


#17

The problem is that it happens with $ionicModal too.