From 0125d65fd50252f27cd85e49b0cfa4dd2819faf0 Mon Sep 17 00:00:00 2001 From: Junyoung Clare Jang Date: Mon, 10 Sep 2018 17:31:21 -0400 Subject: [PATCH] Fix unselectable (#28763) --- types/react/index.d.ts | 2 +- types/react/test/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 789061779d..d6b4f441d1 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -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/ diff --git a/types/react/test/index.ts b/types/react/test/index.ts index a78a480199..6b9400918f 100644 --- a/types/react/test/index.ts +++ b/types/react/test/index.ts @@ -400,6 +400,7 @@ const htmlAttr: React.HTMLProps = { dangerouslySetInnerHTML: { __html: "STRONG" }, + unselectable: 'on', 'aria-atomic': false, 'aria-checked': 'true', 'aria-colcount': 7,