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

bug: Cannot assign ref to IonNav #25652

Closed
4 of 7 tasks
sean-perkins opened this issue Jul 18, 2022 · 2 comments
Closed
4 of 7 tasks

bug: Cannot assign ref to IonNav #25652

sean-perkins opened this issue Jul 18, 2022 · 2 comments
Labels
package: react @ionic/react package type: bug a confirmed bug report

Comments

@sean-perkins
Copy link
Contributor

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

You are currently unable to assign a ref to the IonNav component.

e.g.:

const ref = useRef();

<IonNav ref={ref} />

Results in an error:

Property 'ref' does not exist on type 'IntrinsicAttributes & IonNav'

Expected Behavior

Developers should be able to assign a ref to IonNav to manually call methods available from the public API.

Steps to Reproduce

  1. Create a ref
  2. Assign the ref to IonNav
  3. Observe: Error

Code Reproduction URL

No response

Ionic Info

N/A

Additional Information

No response

@sean-perkins sean-perkins added package: react @ionic/react package type: bug a confirmed bug report labels Jul 18, 2022
sean-perkins added a commit that referenced this issue Jul 20, 2022
@sean-perkins
Copy link
Contributor Author

This issue has been resolved and will be available in the next patch release of Ionic (6.2.1).

@ionitron-bot
Copy link

ionitron-bot bot commented Aug 31, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Aug 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: react @ionic/react package type: bug a confirmed bug report
Projects
None yet
Development

No branches or pull requests

1 participant