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

Clicking on a markdown link should open the link rather than selecting the cell #710

Closed

Description

@chriddyp

Users will use editable=False for read-only tables and therefore shouldn't select them. It feels awkward to have a cell become selected when the table otherwise looks and feels read-only.

In read-only tables, users will be selecting cells to:

  • Copy and paste text - where they'll expect the standard "click and drag" text selection to work
  • Click on embedded markdown links

Both of these interactions feel awkward with the current cell selection behavior.

We could introduce a new property like "cell_selectable", but I believe that this property should be coerced to False if editable=False

Activity

  1. antoinerg commented on Mar 4, 2020

    @antoinerg

    @Marc-Andre-Rivet for your information, I also would like to turn off the possibility of selecting cells. Also, I need a way to open markdown link by clicking once on them. Right now, we need to click twice which is weird.

  2. Marc-Andre-Rivet commented on Apr 16, 2020

    @Marc-Andre-Rivet
    Contributor

    Having editable=False coerce cell_selectable=False would be a breaking change for the table. There's a lot of situations where not wanting to edit does not mean not wanting to navigate.

    I think the Copy and paste text case is fixed by #728.
    Agree with the MD link click requiring a single click to trigger.

    For now I agree that having a cell_selectable: bool prop is probably the only way we can do this without breaking the API. For a 5.x major update, would be good to combine editable+cell_selectable into a single mode prop that doesn't allow for invalid combinations (eg. editable=True, selectable=False)

    Making the size estimate fairly large because I'm not sure what the MD fix will require.

  3. antoinerg commented on Apr 16, 2020

    @antoinerg

    Agree with the MD link click requiring a single click to trigger.

    Great! @Marc-Andre-Rivet should we make a separate issue for this one?

  4. chriddyp commented on Apr 24, 2020

    @chriddyp
    MemberAuthor

    Agree with the MD link click requiring a single click to trigger.
    Making the size estimate fairly large because I'm not sure what the MD fix will require.

    Alright, I'll update this issue to be focused on just getting clicking on a markdown link to work directly

  5. changed the title [-]When `editable=False`, cells shouldn't be selectable[/-] [+]Clicking on a markdown link should open the link rather than selecting the cell[/+] on Apr 24, 2020
  6. Dekermanjian commented on May 22, 2020

    @Dekermanjian

    Hello, I am adding this comment into this issue as it seems very closely related. There also should be an option to allow links to open in a new tab, and I believe it should be the default option. It is unlikely that a user will want to click on a link in a data-table and be directed away from the table.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions