foundation-cli icon indicating copy to clipboard operation
foundation-cli copied to clipboard

Data-interchange stopped working: no src attribute being added to img

Open wes-davis opened this issue 7 years ago • 0 comments

I am using data-interchange to swap out inline SVGs at different screen sizes (by including data-inline-svg in the img tag).

This worked perfectly throughout development, but stopped working after I ran npm package. Now nothing appears on the page, and the HTML no longer shows a src attribute being inserted in the img code.

I am showing the following console error for Inline SVG, but no error related to data-interchange:

Uncaught ReferenceError: Foundation is not defined at foundation.inline-svg.js:83 at Object.1.svg-injector/svg-injector (foundation.inline-svg.js:84) at s (foundation.inline-svg.js:1) at e (foundation.inline-svg.js:1) at foundation.inline-svg.js:1

wes-davis avatar Jun 06 '17 19:06 wes-davis