You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently the a ref prop was added to both DateRange and DateInput components; however, IDE Intellisense show that DateInput does not find a definition for the ref prop.
This can currently only be "fixed" temporarily by either:
declaring the module - declare module "carbon-react/lib/components/date";
importing the .d.ts file directly - import type{ DateChangeEvent } from "carbon-react/lib/components/date/date";
After speaking with @edleeks87 and @robinzigmond , it seems that something is missing from Carbon DateInput's .d.ts file or declaration, and should be included.
Expected behaviour
Expected behaviour is the ability to use ref prop while implementing the DateInput component, as i am informed that it already should.
The generated storybook docs should include mention of ref also.
Current behaviour
Recently the a
ref
prop was added to bothDateRange
andDateInput
components; however, IDE Intellisense show that DateInput does not find a definition for theref
prop.This can currently only be "fixed" temporarily by either:
declare module "carbon-react/lib/components/date";
.d.ts
file directly -import type{ DateChangeEvent } from "carbon-react/lib/components/date/date";
After speaking with @edleeks87 and @robinzigmond , it seems that something is missing from Carbon DateInput's .d.ts file or declaration, and should be included.
Expected behaviour
Expected behaviour is the ability to use
ref
prop while implementing theDateInput
component, as i am informed that it already should.The generated storybook docs should include mention of
ref
also.CodeSandbox or Storybook URL
https://codesandbox.io/s/optimistic-leftpad-odqdm7?file=/src/index.tsx
Suggested Solution
No response
Carbon Version
116.0.1
Design Tokens Version
No response
What browsers are you seeing the problem on?
Other
What Operating System are you seeing the problem on?
MacOS
Anything else we should know?
Did not select a browser, as this error is seen in / reported by the IDE, pre-compile.
Confidentiality
The text was updated successfully, but these errors were encountered: