epam / UUI

React-based components and accelerators library built by EPAM Systems.
https://uui.epam.com/
MIT License
161 stars 61 forks source link

[DataTable]: unable to unpin column when it has isAlwaysVisible attribute #2258

Closed oleg96 closed 3 weeks ago

oleg96 commented 1 month ago

Prerequisites

Steps to Reproduce

Open the sandbox with DataTable example UUI Codesandbox.

  1. Open Configure columns
  2. Move Name column to pinned section
  3. Try to move Name column back to not pinned section

Actual result

It is not possible to move column back to not pinned section if it has isAlwaysVisible attribute

https://github.com/epam/UUI/assets/3322605/a1f760f1-99aa-4a2b-8a1d-905fe45d8e23

Expected result

It is possible to move column back to not pinned section if it has isAlwaysVisible attribute, and not possible to move it into Hidden in table

Environment

AlekseyManetov commented 4 weeks ago

We have decided to adjust the logic for the isAlwaysVisible prop. When this prop is enabled, the column will not be allowed to be pinned/unpinned, moved, or unchecked. Additionally, if the fix value is not specified, we will always forcibly fix the column to the left. We believe that typically, when the isAlwaysVisible value is set, it indicates a column without which the table would not make sense, and in such cases, it should always remain static in place.

NatalliaAlieva commented 3 weeks ago

Released in 5.8.0 ver.