gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

IE11: Image Block broken

Open tg-ephox opened this issue 9 years ago • 4 comments

Issue Overview

Image Block dependency (re-resizable) uses JS functions not available in IE11 causing the block not to render

Steps to Reproduce (for bugs)

  1. Open Post with Image block in IE 11

This block has encountered an error and cannot be previewed.

Expected Behavior

Image block works as in other browers

Current Behavior

Errors

Possible Solution

babel pollyfill

Screenshots / Video

screen shot 2017-11-21 at 4 46 59 pm

Related Issues and/or PRs

https://github.com/WordPress/gutenberg/pull/746

Todos

  • [ ] Tests
  • [ ] Documentation

tg-ephox avatar Nov 21 '17 06:11 tg-ephox

https://lodash.com/docs/4.17.4#endsWith

aduth avatar Nov 21 '17 12:11 aduth

@aduth not as easy as it seems since the issue is in third-party code. We could PR there or provide a polyfill.

youknowriad avatar Nov 21 '17 13:11 youknowriad

Oh, I missed that. We could also include it in the transpilation step (Edit: This won't work because it needs the polyfill), but I would expect the dependency should already be shipping a transpiled variant.

aduth avatar Nov 21 '17 13:11 aduth

See: https://github.com/bokuweb/re-resizable/pull/160

aduth avatar Nov 21 '17 13:11 aduth