Skip to content

Commit

Permalink
Merge pull request #116 from vipentti/btn-ripple-fix-v6
Browse files Browse the repository at this point in the history
Temporary fix for #114
  • Loading branch information
vipentti authored Jul 26, 2016
2 parents 2891a87 + 4625556 commit 597b527
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Material/Button.elm
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ blurAndForward : String -> Attribute m
blurAndForward event =
Html.Attributes.attribute
("on" ++ event)
"this.blur(); this.lastChild.dispatchEvent(new Event('touchcancel'));"
-- NOTE: IE Does not properly support 'new Event()'. This is a temporary workaround
"this.blur(); (function(self) { var e = document.createEvent('Event'); e.initEvent('touchcancel', true, true); self.lastChild.dispatchEvent(e); }(this));"


{-| Component view function.
Expand Down

0 comments on commit 597b527

Please sign in to comment.