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

Disabled attribute with ion-input not working #10095

Closed
antoine92190 opened this issue Jan 18, 2017 · 9 comments
Closed

Disabled attribute with ion-input not working #10095

antoine92190 opened this issue Jan 18, 2017 · 9 comments
Labels
needs: reply the issue needs a response from the user
Milestone

Comments

@antoine92190
Copy link

antoine92190 commented Jan 18, 2017

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

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:

When I use the disabled attribute on ion-input or ion-textarea, the text is not disabled.

Expected behavior:

I should not be able to modify the text inside an ion-input or ion-textarea when disabled.
The text opacity should also be modified.

Ionic info:

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.5
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 1.0.0
ios-deploy version: 1.9.0
ios-sim version: 5.0.11
OS: macOS Sierra
Node Version: v6.9.2
Xcode version: Xcode 8.2 Build version 8C38

@rapropos
Copy link
Contributor

Perhaps a dupe of #6408?

@jgw96
Copy link
Contributor

jgw96 commented Jan 19, 2017

Hello @antoine92190 ! Thanks for opening an issue with us. Unfortunately i cannot reproduce this issue. What devices are you seeing this issue on?

@jgw96 jgw96 added needs: reply the issue needs a response from the user v2 labels Jan 19, 2017
@antoine92190
Copy link
Author

antoine92190 commented Jan 19, 2017

Hi @jgw96
I'm using an iPhone 5s for my development testing.
I created a fresh new ionic project and did 'ionic serve' (with Google Chrome), but I still experience the issue.
I tried things as:

<ion-input disabled></ion-input>
<ion-input [disabled]="true"></ion-input>
<ion-input disabled="true"></ion-input>

But none is working...

@ChuanTS
Copy link

ChuanTS commented Jan 20, 2017

I have come across to the same problem

@brandyscarney
Copy link
Member

@antoine92190 Can you please try with the latest nightly and let me know if you're still seeing this:

npm install --save --save-exact [email protected]

If you are - are you adding anything else or is it just an ion-input inside of an ion-content? Is it wrapped in a formGroup? Any logs in the console?

@antoine92190
Copy link
Author

Yes, it works perfectly in the nightly!
Should I wait for the rc6 release or can I use this nightly in my app?

@brandyscarney
Copy link
Member

@antoine92190 Sorry, you could have used the nightly, but rc.6 has been released now. :) I'm going to close this, thanks!

@brandyscarney brandyscarney added this to the 2.0.0-rc.6 milestone Jan 24, 2017
@Ejiro-Edwin
Copy link

Ionic 2:
Static property:

Dynamically:

After in the component(.ts file):private isInputDisabled:boolean=false;

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 2, 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 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: reply the issue needs a response from the user
Projects
None yet
Development

No branches or pull requests

6 participants