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 input fix #9676

Merged
merged 4 commits into from
Dec 19, 2016
Merged

Disabled input fix #9676

merged 4 commits into from
Dec 19, 2016

Conversation

jgw96
Copy link
Contributor

@jgw96 jgw96 commented Dec 16, 2016

Short description of what this resolves:

Stops disabled inputs from acting like they have been focused

Changes proposed in this pull request:

  • add a css rule to prevent .input-cover from being focused
  • add a disabled input to the input focus test

Ionic Version: 2

Fixes: #9070

@@ -23,6 +23,10 @@ ion-textarea {
width: 100%;
}

ion-input[disabled] .input-cover {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move the rule so it is with the other rule related to input cover: https://github.com/driftyco/ionic/blob/master/src/components/input/input.scss#L77-L94

you could add it after that rule and add a sentence in the description saying the input cover shouldn't be clickable when the input is disabled.

Otherwise it looks good, just make sure there is one line break between selectors and two before a header. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Below commit takes care of this, thanks for reviewing (:

@brandyscarney brandyscarney merged commit 22ba043 into master Dec 19, 2016
@brandyscarney
Copy link
Member

👍

@jgw96
Copy link
Contributor Author

jgw96 commented Dec 19, 2016

🎉

@jgw96 jgw96 deleted the disabledInputFix branch December 19, 2016 15:55
@luoweii
Copy link

luoweii commented Jan 20, 2017

Why add disabled is invalid for input?

@luoweii
Copy link

luoweii commented Jan 20, 2017

Why add disabled is invalid for ion- input?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants