mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
Fix unselectable (#28763)
This commit is contained in:
committed by
John Reilly
parent
0bf5d0cb86
commit
0125d65fd5
2
types/react/index.d.ts
vendored
2
types/react/index.d.ts
vendored
@@ -1036,7 +1036,7 @@ declare namespace React {
|
||||
itemRef?: string;
|
||||
results?: number;
|
||||
security?: string;
|
||||
unselectable?: boolean;
|
||||
unselectable?: 'on' | 'off';
|
||||
}
|
||||
|
||||
// All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
|
||||
|
||||
@@ -400,6 +400,7 @@ const htmlAttr: React.HTMLProps<HTMLElement> = {
|
||||
dangerouslySetInnerHTML: {
|
||||
__html: "<strong>STRONG</strong>"
|
||||
},
|
||||
unselectable: 'on',
|
||||
'aria-atomic': false,
|
||||
'aria-checked': 'true',
|
||||
'aria-colcount': 7,
|
||||
|
||||
Reference in New Issue
Block a user