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]: PinInputInput Cannot read properties of null (reading 'value') in nextTick #1605

Closed
hartbit opened this issue Feb 3, 2025 · 1 comment · Fixed by #1606
Closed
Labels
bug Something isn't working

Comments

@hartbit
Copy link

hartbit commented Feb 3, 2025

Environment

Developement/Production OS: macOS 14.5
Node version: 20.18.0
Package manager: [email protected]
Radix Vue version: 1.9.13
Vue version: 3.0.0
CSS framework: [email protected]
Client OS: macOS 14.5
Browser: Chrome 131.0.6778.266

Link to minimal reproduction

https://stackblitz.com/edit/bhw6xwfr-hcdmactw?file=src%2FApp.vue,package.json

Steps to reproduce

Fill all inputs.

Describe the bug

In my reproduction example, I listen to the complete event to hide PinInputRoot, which causes PinInputInput to throw the following error:

TypeError: Cannot read properties of null (reading 'value')

This error is thrown from resetPlaceholder's nextTick, because the component is not in the DOM anymore.

Expected behavior

It should not throw an error.

Context & Screenshots (if applicable)

I reproduced this issue in Chrome but could not reproduce it in Firefox.

@hartbit
Copy link
Author

hartbit commented Feb 3, 2025

I opened a pull request that resolves the issue, but I failed to reproduce it in the unit tests: #1606

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants