-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Components: Cannot access ref #2963
Comments
melloware
added
Type: Bug
Issue contains a defect related to a specific component.
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Jun 5, 2022
melloware
removed
the
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
label
Jun 7, 2022
melloware
added a commit
to melloware/primereact
that referenced
this issue
Jun 7, 2022
melloware
added a commit
to melloware/primereact
that referenced
this issue
Jul 9, 2022
melloware
added a commit
to melloware/primereact
that referenced
this issue
Jul 9, 2022
melloware
added a commit
to melloware/primereact
that referenced
this issue
Jul 13, 2022
mertsincan
added a commit
that referenced
this issue
Jul 18, 2022
Co-authored-by: mertsincan <[email protected]>
mertsincan
added a commit
that referenced
this issue
Jul 18, 2022
mertsincan
added a commit
that referenced
this issue
Jul 18, 2022
melloware
added a commit
to melloware/primereact
that referenced
this issue
Jul 18, 2022
melloware
added a commit
to melloware/primereact
that referenced
this issue
Jul 18, 2022
mertsincan
added a commit
that referenced
this issue
Jul 18, 2022
* Fix #2963: Expose ref and element * Fix #2963: DomHandler check for Ref object * Fix #2963: InputText/InputTextArea/Button remove imperative handle Co-authored-by: mertsincan <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Ref is no longer accessible in Dropdown and many other components. This code used to work in 7.1
in 8.0 does nothing and ref is not accessible.
Reproducer
https://codesandbox.io/s/primereact-test-forked-xztbhk?file=/src/index.js
PrimeReact version
8.1.1
React version
18.x
Language
ALL
Build / Runtime
Create React App (CRA)
Browser(s)
ALL
Steps to reproduce the behavior
ref
has no values and can't be accessed.From looking in the DropDown.js source code I can see the original `ref is never used.
Expected behavior
The
ref
element to contain the valueThe text was updated successfully, but these errors were encountered: