material icon indicating copy to clipboard operation
material copied to clipboard

chips: regression to component focus in 1.1.2

Open sivakrrish1994 opened this issue 9 years ago • 18 comments

Actual Behavior:

  • md-chips focus is being applied only inside md-chip-input-container
  • Focus should be there through out the md-chips

Angular Versions: *

  • Angular Material Version:1.1.3

sivakrrish1994 avatar Feb 01 '17 10:02 sivakrrish1994

How are you setting focus to it?

cmacdonnacha avatar Feb 02 '17 15:02 cmacdonnacha

@cmacdonnacha Still I have not done. Concerned party has to fix the code. Previously in angular material version: 1.1.1 it was working fine while in v1.1.3, they might have missed to add md-focused on md-chips-wrap when a click is made on it.

v1.1.1: https://material.angularjs.org/1.1.1/demo/chips v1.1.3: https://material.angularjs.org/latest/demo/chips

sivakrrish1994 avatar Feb 04 '17 13:02 sivakrrish1994

@sivakrrish1994 I ran into a similar issue. Trying having a look at my last comment on this issue:

cmacdonnacha avatar Feb 06 '17 09:02 cmacdonnacha

Seeing the same thing. To clarify on the issue, if you click on the far right of the chips component (a part of it that doesn't have the chip-input-container directly under your click) in the 1.1.1 docs, the chip-input-container will be focused, while the same action in 1.1.3 docs does nothing.

tyrdavis avatar Feb 08 '17 19:02 tyrdavis

ya @cmacdonnacha that's one of the option but literally this functionality needs to be implemented by the material team. Let us wait for the material team to fix this issue @cmacdonnacha @tyrdavis

sivakrrish1994 avatar Feb 10 '17 04:02 sivakrrish1994

+1 for this feature

Till then any workaround would be appreciated.

rajathms avatar Apr 17 '17 13:04 rajathms

This is a serious usability bug... how is this being overlooked? +1

jpike88 avatar Apr 29 '17 08:04 jpike88

Same here, 👍

emdotem avatar Sep 11 '17 13:09 emdotem

Sorry @matteomartinelli, it’s time to fork it. They stopped development on it ages ago. But it’s worth using!

jpike88 avatar Sep 11 '17 15:09 jpike88

What's the difference between 1.1.1 and 1.1.3+? In addition the the click on right side not triggering the focus, you will also notice that the placeholder text is truncated because default input box is not wide enough to show the full placeholder text.

dhwang-xactly avatar Oct 16 '17 21:10 dhwang-xactly

Workaround CSS using flex layout.

.md-chips {
  display: flex;
  flex-flow: row wrap;
  box-shadow: none;
}
/* make input box full width of md-chips */
 .md-chip-input-container {
  flex: 1 1 auto;
}

dhwang-xactly avatar Oct 16 '17 22:10 dhwang-xactly

Verified that this was introduced in 1.1.2 (as part of https://github.com/angular/material/pull/9650). Will have a PR up for this soon. It takes a better approach than #11082.

Splaktar avatar Jan 27 '18 09:01 Splaktar

The PR ran into some presubmit failures on internal Google tests. I will see about trying to get it into 1.1.8.

Splaktar avatar Feb 07 '18 08:02 Splaktar

Hello. Any news on when the fix for this will be released?

beazergood avatar Mar 10 '18 11:03 beazergood

wouldnt hold my breath. It’s time to fork!

jpike88 avatar Mar 10 '18 12:03 jpike88

🤦

beazergood avatar Mar 10 '18 13:03 beazergood

hi anybody got a solution for this?

shwethachavdi avatar May 26 '18 07:05 shwethachavdi

PR https://github.com/angular/material/pull/11098 has been updated and re-submitted to presubmit. It's targeted at 1.1.10.

Splaktar avatar May 30 '18 00:05 Splaktar