Dogfalo / materialize

Materialize, a CSS Framework based on Material Design
https://materializecss.com
MIT License
38.86k stars 4.74k forks source link

TapTarget / FeatureDiscovery does not work on IE 11 #5886

Open RemiG26 opened 6 years ago

RemiG26 commented 6 years ago

Expected Behavior

M.TapTarget.init(elem) should initialize the elem correctly

Current Behavior

It works perfectly on Chrome but on IE, the script stops because : Object does not support the property or method "append"

Steps to Reproduce (for bugs)

  1. Create an HTML file with including materializecss
  2. Just add an TapTag structure (http://materializecss.com/feature-discovery.html)
  3. Init it with M.TapTarget.init(document.querySelectorAll(".tap-target"), {})

Context

I'm doing a testing plateform (for API) and I have to run this in IE because this application must run into a touch terminal with IE only. I don't use jQuery.

Your Environment

babirel commented 5 years ago

The solution: change append to appendChild in materialize.js in tapTarget _setup:

` //this.wrapper.append(this.el); this.wrapper.appendChild(this.el); /*