# Google maps embedding broken in 1.8.0.beta8

**URL:** <https://meta.discourse.org/t/google-maps-embedding-broken-in-1-8-0-beta8/60076>\
**Category:** Bug\
**Created:** [March 29, 2017, 3:32am UTC](https://meta.discourse.org/t/google-maps-embedding-broken-in-1-8-0-beta8/60076 "2017-03-29T03:32:51Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [April 3, 2017, 2:03pm UTC](https://meta.discourse.org/t/google-maps-embedding-broken-in-1-8-0-beta8/60076/7 "2017-04-03T14:03:48Z")

</div>

This issue was because we recently pushed a security change in which we sanitized the onebox output HTML. Previously that transparent div used to have `onClick="style.pointerEvents='none'"` attribute but now it’s getting removed by [sanitize](https://github.com/rgrove/sanitize) gem. It seems like `sanitize` gem does not support whitelisting of `onClick` attribute.

For the time being I [fixed](https://github.com/discourse/onebox/commit/27923fe02de093de0a2eaf851d66b6a8d7d2b575) this issue by removing the transparent `<div>` on top of iframe.

I will see if we can workaround this to add the transparent div back so that Google Maps onebox does not interfere with page scrolling.

---

_[View the full topic](https://meta.discourse.org/t/google-maps-embedding-broken-in-1-8-0-beta8/60076)._
