Skip to content

The useShiftDown hook causes slowdowns on unrelated application components #171

@henfiber

Description

@henfiber

The hook added in src/table/Table/index.tsx

    // no selection of content (e.g. text) in table if shift is active (e.g. select shift feature)
    const isShiftDown = useShiftDown();

causes slow downs when typing on unrelated components while pressing Shift (e.g., to capitalize latters, or for selection), especially when a large table is present, due to the table rerendering.

Would it possible to add an option to disable this behavior? or alternatively to implement it via a click handler (on the table) and checking if the click event has e.shiftKey (to disable selection as described in the comment)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions