Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(input): readonly input trying to open the keyboard #9608

Closed
dylanvdmerwe opened this issue Dec 12, 2016 · 2 comments
Closed

bug(input): readonly input trying to open the keyboard #9608

dylanvdmerwe opened this issue Dec 12, 2016 · 2 comments

Comments

@dylanvdmerwe
Copy link
Contributor

Ionic version: (check one with "x")
[x] 2.x

I'm submitting a ... (check one with "x")
[x] bug report

Current behavior:
I have a screen which is meant to be read only. I use ion-inputs to display the data, but I have set the readonly attribute on them. When pressing the ion-input, the keyboard tries to open and the screen moves around.

Also not that having an ion-icon inside an ion-item with an ion-input, the icon click events do not fire.

Happens on both Android and iOS using the latest nightly.

readonly issue

Related code:

 <ion-item *ngIf='issue.Status === 2' class='service-provider'>
                        <ion-icon name='hammer' item-left></ion-icon>
                        <ion-label stacked>Assigned Service Provider</ion-label>
                        <ion-input class='first-input' type="text" readonly [value]='issue.ServiceProviderCompany'></ion-input>
                        <ion-input class='second-input' type="text" readonly [value]='issue.ServiceProviderContactPerson'></ion-input>
                        <ion-icon class="action-icon" name="mail" item-right (click)="sendMail(issue.ServiceProviderEmailAddress)"></ion-icon>
                        <ion-icon class="action-icon" name="call" item-right (click)="callNumber(issue.ServiceProviderContactNumber)"></ion-icon>
                    </ion-item>

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3-201612121605
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.47
ios-deploy version: 1.9.0
ios-sim version: 5.0.10
OS: macOS Sierra
Node Version: v6.9.1
Xcode version: Xcode 8.1 Build version 8B62
@jgw96
Copy link
Contributor

jgw96 commented Dec 12, 2016

Hello, thanks for opening an issue with us! I am going to close this issue as a duplicate of #9070.

@jgw96 jgw96 closed this as completed Dec 12, 2016
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 5, 2018

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 ionitron-bot bot locked and limited conversation to collaborators Sep 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants