Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

fix(mdChips): Backspace key and custom input focus/blur. #4359

Closed
wants to merge 1 commit into from

Conversation

topherfangio
Copy link
Contributor

  • Fix backspace key in Firefox to not change browser history/url

    In Firefox, the backspace key would also modify the browser's
    history/url.

  • Fix focus/blur on chips with custom input:

    Chips with a custom input did not properly update it's class
    list when the inner input was focused/blurred.

Fixes #3562. Fixes #3960. Fixes #2607.

@topherfangio topherfangio modified the milestones: 0.11.0, 0.12.0 Aug 27, 2015
@topherfangio topherfangio added the pr: merge ready This PR is ready for a caretaker to review label Aug 28, 2015
@ngraef
Copy link
Contributor

ngraef commented Aug 28, 2015

This fixes the issue in Edge as well (#3960). However, I got "$apply already in progress" errors during my testing (both Chrome and Edge), likely from the digest loop you added.

@topherfangio topherfangio added needs: review This PR is waiting on review from the team needs: work and removed pr: merge ready This PR is ready for a caretaker to review needs: review This PR is waiting on review from the team labels Aug 28, 2015
@topherfangio
Copy link
Contributor Author

@ngraef Thanks for the confirmation, and for finding the issue! I'm looking into it now. Looks like it only happens on chips with custom inputs...

 * Fix backspace key in Firefox to not change browser history/url

   In Firefox, the backspace key would also modify the browser's
   history/url.

 * Fix focus/blur on chips with custom input:

   Chips with a custom input did not properly update it's class
   list when the inner input was focused/blurred.

Fixes #3562. Fixes #3960. Fixes #2607.
@topherfangio topherfangio added pr: merge ready This PR is ready for a caretaker to review and removed needs: work labels Aug 28, 2015
@topherfangio
Copy link
Contributor Author

@ngraef Thanks again for catching the issue! I have changed the code to use $evalAsync instead of $apply and it looks to be fixed.

@topherfangio topherfangio deleted the fix-chips-multiple branch August 31, 2015 15:45
kennethcachia pushed a commit to kennethcachia/material that referenced this pull request Sep 23, 2015
 * Fix backspace key in Firefox to not change browser history/url

   In Firefox, the backspace key would also modify the browser's
   history/url.

 * Fix focus/blur on chips with custom input:

   Chips with a custom input did not properly update it's class
   list when the inner input was focused/blurred.

Fixes angular#3562. Fixes angular#3960. Fixes angular#2607. Closes angular#4359.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants