md-chips on blur not working in angular-material 1.1.0
Rahul K...
292
Points
26
Posts
|
I am using md-chips in angular-material 1.1.0. But on blur not working.
Although I set true as:
When I changed it to version 1.1.3 , it is working fine but some drop downs are not working.
Because angular-material.js had some changes since the 1.1.0 rc5 version,
So if we do not have a `value` or `ng-value`, assume it is an empty option which clears the select.
You can see more details here: https://github.com/angular/material/commit/fcd42df882a1a1a1a83473204febf4ece6c5d332 Can any one fix this problem? Thanks... |
Answers
guest1
10
Points
0
Posts
|
ngBlur and ngFocus will start working from 1.1.1 version of Angular Material
Posted On:
30-Mar-2017 05:13
|
Rahul M...
4822
Points
23
Posts
|
Hi guys, I think, it's a bug. You can see more details for this change here: Here you can see solution as:
with
This is just replicating what is triggered by ENTER keycode, on MdChipsCtrl.prototype.inputKeydown.
Posted On:
30-Mar-2017 05:21
|
Smith
2568
Points
74
Posts
|
Here is how to implement the hack without changing the source code. we simply need to extend the mdChips directive and you can implement it from there. Here is sample code as:
Posted On:
30-Mar-2017 05:26
|
Rahul K...
292
Points
26
Posts
|
Thanks.
Posted On:
30-Mar-2017 05:30
|
Blog
Active User (0)
No Active User!