Test if click is responsive details toggle

Test if click is responsive details toggle

yrarayrara Posts: 1Questions: 1Answers: 0

I am currently navigating the user to a new page upon clicking anywhere on a table row.

When making tables responsive, this introduces an issue, as any click to toggle the details panel will be caught as well. Preferrably, I would like to detect in my click event, whether the current click is no the details expand/collapse button, and in that scenario prevent the default action. Failing that, I would like to prevent the default action from the responsive-display event. I have not had any success with either.

I could of course do some silly workaround with global variables to keep track of state, but I'm asking to see if there is any intended best solution to this problem.

Demo

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,669Questions: 1Answers: 10,096 Site admin
    Answer ✓

    There is no option to cancel a Responsive display I'm afraid. You can make the selectors more selective, so responsive is triggered only on a given column, and use suitable selectors for your custom click events.

    Allan

This discussion has been closed.