Open yohernandez opened 6 months ago
Hello @yohernandez! Thanks for opening an issue. The Modus core team will get back to you soon (usually within 24-hours) and provide guidance on how to proceed. Contributors are welcome to participate in the discussion and provide their input on how to best solve the issue, and even submit a PR if they want to.
Please wait until the issue is ready to be worked on before submitting a PR, or you can reach out to the core team if it is time bound. For trivial things, or bugs that don't change the expected behaviors and UI, you can go ahead and make a PR.
Also, the pagination change event is being triggered by the change to density. Should we trigger a density change event?
@cjwinsor any advice on this one? Should this be fixed?
@apaddock This is an issue and should be fixed, it most likely is related to state management between the tanstack table and our internal state handling, assuming we are managing that state. If not that we will need to dig a bit deeper.
@apaddock This is an issue and should be fixed, it most likely is related to state management between the tanstack table and our internal state handling, assuming we are managing that state. If not that we will need to dig a bit deeper.
@cjwinsor The problem seems to be with the storybook. I have tested it in my local and it seems to be working fine. The issue occurs not only with density changes but with all control items.
@yohernandez Are you able to reproduce outside of storybook, or was this only identified as an issue in storybook?
@cjwinsor No, I am not. It's probably an issue in Storybook.
@cjwinsor In the modus table component, a watch decorator is used for rowSelectionOptions
which is causing this problem. To resolve this, we can leave the preSelected
row as [] in the storybook or we can remove this feature ?
modus-table.tsx
@prashanthr6383 Can you explain more about leaving preSelected
row as []
? Do you mean how its set in the storybook?
@cjwinsor Yes. Whenever a property gets changed, the storybook updates all the properties instead of just the ones that we need. This is why when we change density
or other properties in the storybook , it updates the property and sets the pre defined values for the remaining properties.
Do we need this preSelected
row ? can we remove the preselected
value if it is not necessary ?
Prerequisites
Describe the issue
There is an issue with the row selection when the density property changes. Steps to reproduce:
Reduced test cases
No response
What operating system(s) are you seeing the problem on?
No response
What browser(s) are you seeing the problem on?
No response
What is the issue regarding ?
@trimble-oss/modus-web-components
What version of npm package are you using ?
No response
Priority
Medium
What product/project are you using Modus Components for ?
e-builder
What is your team/division name ?
e-builder
Are you willing to contribute ?
Yes
Are you using Modus Web Components in production ?
No response