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] - Date Range Picker TypeError (Error on click the right corner) #3008

Closed
DanielReyes03 opened this issue May 16, 2024 · 4 comments · Fixed by #3011
Closed

[BUG] - Date Range Picker TypeError (Error on click the right corner) #3008

DanielReyes03 opened this issue May 16, 2024 · 4 comments · Fixed by #3011
Assignees
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working

Comments

@DanielReyes03
Copy link

NextUI Version

2.3.6

Describe the bug

When i clicked the bottom right corner of the date range picker before or after select a new range of dates. The component fallbacks an error

Unhandled Runtime Error
TypeError: Failed to execute 'createTreeWalker' on 'Document': parameter 1 is not of type 'Node'.

This occurs on the main website and when using the component in my own project

Your Example Website or App

https://nextui.org/docs/components/date-range-picker

Steps to Reproduce the Bug or Issue

  1. Go to the Date range picker
  2. Click in the bottom right corner of the component

Expected behavior

As a user, i don't expect to have this error on the component.

Screenshots or Videos

Screen-2024-05-15-223040.1.mp4

Operating System Version

macOS

Browser

Chrome

Copy link

linear bot commented May 16, 2024

@wingkwong wingkwong added 🐛 Type: Bug Something isn't working 📦 Scope : Components Related to the components labels May 16, 2024
@wingkwong wingkwong self-assigned this May 16, 2024
@azharisubroto
Copy link

I have the same issue

@zillBoy
Copy link

zillBoy commented Jun 17, 2024

Hi, I also received the same issue in my next.js project using "@nextui-org/react": "^2.3.6"

Unhandled Runtime Error
TypeError: Failed to execute 'createTreeWalker' on 'Document': parameter 1 is not of type 'Node'.

The way I solved it was by installing the package as individual npm install @nextui-org/date-picker, and then using that import in my project.

Before I was using global import {DateRangePicker} from "@nextui-org/react"; which gave me the error, thank you

@wingkwong
Copy link
Member

@zillBoy Just FYI. This issue has been fixed and our latest version is v2.4.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants