Skip to content

[Tooltip] Non-null assertion on timeoutRef #59

Description

@olegpolyakov

Component

Tooltip

Problem

File: Tooltip.tsx lines 83, 105

Uses non-null assertion:

Suggested Fix

if (timeoutRef.current) {
    window.clearTimeout(timeoutRef.current);
}

Impact

Potential runtime error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions