Skip to content

fix(input): avoid repeat accesses to check if element is a textarea - #19115

Merged
jelbourn merged 1 commit into
angular:masterfrom
crisbeto:input-textarea-check-dom
May 8, 2020
Merged

jelbourn merged 1 commit into
angular:masterfrom
crisbeto:input-textarea-check-dom

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Since the node's type can't change, it's unnecessary to check the DOM in the _isTextarea on every invocation. This affects the MDC form field in particular since it's used in a data binding.

Since the node's type can't change, it's unnecessary to check the DOM in the `_isTextarea` on every invocation. This affects the MDC form field in particular since it's used in a data binding.
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release labels Apr 19, 2020
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 19, 2020
@devversion devversion added lgtm action: merge The PR is ready for merge by the caretaker labels Apr 20, 2020

@mmalerba mmalerba left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jelbourn
jelbourn merged commit f8d9c96 into angular:master May 8, 2020
jelbourn pushed a commit that referenced this pull request May 8, 2020
…19115)

Since the node's type can't change, it's unnecessary to check the DOM in the `_isTextarea` on every invocation. This affects the MDC form field in particular since it's used in a data binding.
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jun 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release

5 participants