Skip to content

Commit

Permalink
Merge pull request #299 from canjs/294-disabled-events-fix
Browse files Browse the repository at this point in the history
ignore disabled element warning at feature detection
  • Loading branch information
Christopher Baker committed Jun 30, 2017
2 parents d00eb3c + 52fce14 commit 31a45d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dom/events/events.js
Expand Up @@ -50,7 +50,8 @@ module.exports = {
}
}

if(this.disabled === true) {
// ignore events from feature detection below
if(this.disabled === true && ev.type !== 'fix_synthetic_events_on_disabled_test') {
//!steal-remove-start
dev.warn(
"can-util/dom/events::dispatch: Dispatching a synthetic event on a disabled is " +
Expand Down

0 comments on commit 31a45d1

Please sign in to comment.