-
Notifications
You must be signed in to change notification settings - Fork 59
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
Event delegation should skip "disabled" elements #134
Comments
From @fernandosouza on July 16, 2016 18:53 👍 |
From @fernandosouza on July 17, 2016 22:45 Hi, @mairatma. I'm taking care of this issue now. I'll send you any feedback as soon as I can. |
From @fernandosouza on July 18, 2016 2:44 @mairatma. I've followed the steps in the README.md but I've got this error after running the "npm test" command. I don't think it's related to the Metal, but could you give me a hand?
Too many arguments. npm ERR! Darwin 15.5.0 npm ERR! Please include the following file with any support request: |
Weird, is this the full log? Seems like it's no really saying where the problem is, so it's hard to figure it out. Can you run again and make sure to output the whole thing, from your command (which doesn't show up here, but I assume is |
From @yuchi on July 18, 2016 15:8 I believe it’s there, just badly formatted:
|
From @mthadley on July 18, 2016 16:58 I also tried to run the tests right after the mono-repo was created, but I saw the same error. It seemed strange since I couldn't find any docs on the |
hmmm weird, I'm going to try to reproduce by recreating this now |
Oh, actually I think I know what it is. My So you need to install lerna via |
Fixed the instructions here: 619c71c |
From @fernandosouza on July 18, 2016 17:28 Now it's working. Thanks @mairatma. Some commands I have to use |
Yeah, I usually need |
From @fernandosouza on July 18, 2016 18:34 Yeah. I've needed it to |
Fixed by d2293a1. |
@mairatma. I think I found the problem that Chema mentioned. Maybe we should reopen this issue and I will send you a new PR. |
This has now been fixed in master :D |
From @mairatma on July 5, 2016 17:37
Events don't trigger for disabled elements natively, even when bubbling. Our event delegation doesn't respect that though, since it catches the event in the component's element and doesn't check for disabled states.
Need to investigate which elements are automatically skipped natively (button for sure, but maybe more of them too).
Copied from original issue: mairatma/metal-events#2
Copied from original issue: mairatma/metal-lerna#2
The text was updated successfully, but these errors were encountered: