Buttons and responsive bug(?)

Buttons and responsive bug(?)

thisWizardthisWizard Posts: 2Questions: 0Answers: 0

Howdy,

The responsive and button extension with the option 'columnsToggle' causes a bit of a funny bug.

If you hide the column using the 'columnsToggle' buttons and then resize the table, the glyphicon that appears in the first column does not show the responsive hidden column when clicked (I'm guessing its because the toggle button has set the column attribute to hidden). I suppose that's fine and expected but it seems like a bug to me.. bear with me and read on!

The problem with this is that the red glyphicon still gets shown and the loop to toggle back to the green glyphicon gets broken.(again assuming it is looking for the not hidden attribute before setting it again). This means when clicking the red glyphicon it will not show the green glyphicon again which results in a little bug. To fix it you have to set the column toggle button to remove the hidden attribute and click the button manically to get it back to its default green state!

Hopefully that makes sense!

All my best,

Nanaki

Replies

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @Nanaki,

    On your first point in the second paragraph, I disagree, sorry. I'd say that if you've hidden the column, you wouldn't expect it to be shown when Responsive columns are displayed.

    But, yep, I'd agree that there's a bug with it staying green, I'll get it raised and linked to this thread.

    For prosperity, to reproduce the problem, go to this example:

    1. shrink the screen so that the Salary column is no longer displayed
    2. Press the Salary columnsToggle button to hide the Salary column
    3. Press '+' to open one of the rows
    4. This turns it red but displays nothing ( since Salary is now hidden)
    5. Repressing '-' does nothing, it remains red

    Cheers,

    Colin

  • thisWizardthisWizard Posts: 2Questions: 0Answers: 0

    Thank you Colin. Sorry for the wall of text! I'm going to borrow your format for bug reporting which will hopefully make me clearer in the future.

    All my best,

    Nanaki

This discussion has been closed.