Skip to content

Commit f85aade

Browse files
eekcpojer
authored andcommitted
ADD: disablePictureInPicture attribute for HTML5 videos (#15334)
* ADD: disablePictureInPicture attribute for HTML5 videos * ADD: disablePictureInPicture as DOMProperty and attribute * Update: Replace camelCase with lowercase and vice-versa * FIX: Missing comma on attribute (prettier)
1 parent 1eb2b89 commit f85aade

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

fixtures/attribute-behavior/src/attributes.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,11 @@ const attributes = [
448448
read: getSVGAttribute('direction'),
449449
},
450450
{name: 'disabled', tagName: 'input'},
451+
{
452+
name: 'disablePictureInPicture',
453+
tagName: 'video',
454+
read: getProperty('disablepictureinpicture'),
455+
},
451456
{
452457
name: 'display',
453458
tagName: 'svg',

packages/react-dom/src/shared/DOMProperty.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ const properties = {};
294294
'default',
295295
'defer',
296296
'disabled',
297+
'disablePictureInPicture',
297298
'formNoValidate',
298299
'hidden',
299300
'loop',

packages/react-dom/src/shared/possibleStandardNames.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const possibleStandardNames = {
5454
defer: 'defer',
5555
dir: 'dir',
5656
disabled: 'disabled',
57+
disablepictureinpicture: 'disablePictureInPicture',
5758
download: 'download',
5859
draggable: 'draggable',
5960
enctype: 'encType',

0 commit comments

Comments
 (0)