Skip to content

Commit

Permalink
ignore disabled element warning at feature detection
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherjbaker committed Jun 30, 2017
1 parent d00eb3c commit 52fce14
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 52fce14

Please sign in to comment.