Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.
This repository was archived by the owner on May 19, 2025. It is now read-only.

DateRange.updatePreview : ReferenceError: Cannot access 'color' before initialization  #658

@illinoiseeee

Description

@illinoiseeee

DateRange.updatePreview : ReferenceError: Cannot access 'color' before initialization

init the color before initialisation

const color = ranges[focusedRange[0]]?.color || rangeColors[focusedRange[0]] || color;

[BUG] Bug Reproduce Steps

Just render the DateRange component and do hover some date.

[BUG] Expected behaviour

Show the hover

Environment

Package Version: 2.0.1
React version: 17
Node version: 18
Browser: chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions