LinusBorg / vue-simple-portal

A simpler Portal implementation focussed on moving slot content to the end of the body element
Other
223 stars 28 forks source link

fix: IE 11 #18

Closed ChristianKienle closed 5 years ago

ChristianKienle commented 5 years ago

This PR addresses two issues that we encountered once we entered the portal.

  1. The demo does not work on IE (by default). IE complains about promises. Fix: In the demo entry point I simply import the babel polyfills. Running yarn serve --mode production then works in IE.
  2. Vue Simple Portal itself does not work in IE. The demo helped a lot to track that issue down. IE seems not to have support for append. So I have replaced it with appendChild.

yarn test says everything is still okay.