Skip to content

Commit 6cdb569

Browse files
quantizoremmatown
authored andcommitted
add "on" amp html property to whitelist (#1584)
* add "on" amp html property to whitelist fixes styled-components/styled-components#2689 * add changeset
1 parent 1ae9489 commit 6cdb569

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/curvy-mangos-clap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@emotion/is-prop-valid': patch
3+
---
4+
5+
add "on" amp html attribute to the whitelist

packages/is-prop-valid/src/props.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ const props = {
193193
// https://html.spec.whatwg.org/multipage/microdata.html#microdata-dom-api
194194
itemID: true,
195195
itemRef: true,
196+
// used in amp html for eventing purposes
197+
on: true,
196198
// results show looking glass icon and recent searches on input
197199
// search fields in WebKit/Blink
198200
results: true,

0 commit comments

Comments
 (0)