Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumeralDate not receiving focus #7180

Open
1 task done
PhilBak opened this issue Jan 27, 2025 · 2 comments
Open
1 task done

NumeralDate not receiving focus #7180

PhilBak opened this issue Jan 27, 2025 · 2 comments

Comments

@PhilBak
Copy link

PhilBak commented Jan 27, 2025

Description

The NumeralDate component is not receiving focus after a call from setFocus (from UseForm - ReactHookForm).
Possibly connected to 'not accepting/passing the forwardRef'.

Reproduction

https://stackblitz.com/edit/parsium-carbon-starter-6yk64cce?file=src%2FApp.tsx,src%2Fmain.tsx

Steps to reproduce

No response

JIRA ticket numbers (Sage only)

No response

Suggested solution

No response

Carbon version

144.9.2

Design tokens version

4.35.0

Relevant browsers

Microsoft Edge

Relevant OSs

Windows

Additional context

No response

Confidentiality

  • I confirm there is no confidential or commercially sensitive information included.
@PhilBak PhilBak added Bug triage Triage Required labels Jan 27, 2025
@edleeks87
Copy link
Contributor

We need to support forwardRef on the component to allow the setFocus function to work. The types are somewhat dynamic so might create issues when we add the forwardRef in so we may need to do something like we used to here:

https://github.com/Sage/carbon/blob/v10.0.0/src/components/button/button.component.js

@damienrobson-sage
Copy link
Contributor

FE-7067

@damienrobson-sage damienrobson-sage added On Backlog and removed triage Triage Required labels Jan 28, 2025
@DobroTora DobroTora assigned DobroTora and unassigned DobroTora Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants