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

fix(TextArea): use onInput for updating height for IE compatibility #1982

Merged
merged 3 commits into from
Sep 1, 2017

Conversation

nickpedersen
Copy link
Contributor

Fixes #1925

This is my first PR, apologies if there are any mistakes.
Added an onInput method to the TextArea component, copying the onChange pattern. Added a test for the onInput method.

Tested in IE11 and the requested behaviour (cutting and pasting) correctly resizes the TextArea.

@codecov-io
Copy link

codecov-io commented Aug 20, 2017

Codecov Report

Merging #1982 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1982      +/-   ##
=========================================
+ Coverage    99.8%   99.8%   +<.01%     
=========================================
  Files         148     148              
  Lines        2561    2563       +2     
=========================================
+ Hits         2556    2558       +2     
  Misses          5       5
Impacted Files Coverage Δ
src/addons/TextArea/TextArea.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b60e2aa...01154f5. Read the comment docs.

@levithomason
Copy link
Member

One minor conflict here, could you take a look?

@levithomason
Copy link
Member

@nickpedersen / @layershifter I've rebased, fixed conflicts, and cleaned up typings. I think this is good to go. Can you take a look and confirm?

@layershifter
Copy link
Member

layershifter commented Aug 28, 2017

I've removed useless export, now tests are passing. I don't have IE at now, so I can't test.

@nickpedersen can you take a look?

@nickpedersen
Copy link
Contributor Author

Just tested, can confirm it's working in IE11. Appreciate the help on this PR @layershifter and @levithomason

@levithomason levithomason merged commit 85a2b99 into Semantic-Org:master Sep 1, 2017
@levithomason
Copy link
Member

Thanks guys!

@levithomason
Copy link
Member

Released in semantic-ui-react@0.73.0

layershifter pushed a commit that referenced this pull request Sep 11, 2017
…1982)

* fix(TextArea): use onInput for updating height for IE compatibility

* fix(TextArea): cleanup onChange and onInput typings

* fix(typings): remove useless export
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants