Skip to content

Commit

Permalink
add "on" amp html property to whitelist (emotion-js#1584)
Browse files Browse the repository at this point in the history
* add "on" amp html property to whitelist

fixes styled-components/styled-components#2689

* add changeset
  • Loading branch information
quantizor authored and emmatown committed Oct 29, 2019
1 parent 9e35ee3 commit b8b4971
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-mangos-clap.md
@@ -0,0 +1,5 @@
---
'@emotion/is-prop-valid': patch
---

add "on" amp html attribute to the whitelist
2 changes: 2 additions & 0 deletions packages/is-prop-valid/src/props.js
Expand Up @@ -193,6 +193,8 @@ const props = {
// https://html.spec.whatwg.org/multipage/microdata.html#microdata-dom-api
itemID: true,
itemRef: true,
// used in amp html for eventing purposes
on: true,
// results show looking glass icon and recent searches on input
// search fields in WebKit/Blink
results: true,
Expand Down

0 comments on commit b8b4971

Please sign in to comment.