ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Making the Prompt Popup allow blank input?

Open lwenke opened this issue 12 years ago • 4 comments

http://codepen.io/ionic/pen/zkmhJ

In Javascript the inbuilt "prompt" popup always allows the user to just press OK without adding any text.

In Ionic's prompt the OK button can be pressed but it doesn't exit the popup. I think either OK should exit the popup or be a visually disabled button until text input is added.

BTW this also affects the "Enter Wi-Fi Password" popup.

The code for that is:

                text: '<b>Save</b>',
                type: 'button-positive',
                onTap: function(e) {
                    return $scope.data.wifi;
                }

It looks like if onTap returns undefined (or similar) then the button doesn't work (though it does visually - it looks the same and changes color when clicked)

lwenke avatar Apr 08 '14 04:04 lwenke

Thanks Iwenke, will fix.

ajoslin avatar Apr 08 '14 12:04 ajoslin

#1077 fixes this, will close once merged

ajoslin avatar Apr 08 '14 15:04 ajoslin

Fixed via cb1a5f62285fe5939274bdda9db169af69eddf35

ajoslin avatar Apr 08 '14 19:04 ajoslin

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 06 '18 07:09 ionitron-bot[bot]