mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Allow <script> and <template> tags in <select> tag (#31837)
This commit is contained in:
1 parent
74dd2da9ac
commit
95465dc491
1 file changed
+2
@@ -297,6 +297,8 @@ function isTagValidWithParent(tag: string, parentTag: ?string): boolean {
|
||||
tag === 'hr' ||
|
||||
tag === 'option' ||
|
||||
tag === 'optgroup' ||
|
||||
tag === 'script' ||
|
||||
tag === 'template' ||
|
||||
tag === '#text'
|
||||
);
|
||||
case 'optgroup':
|
||||
|
||||
Reference in new issue
Block a user