Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List view with filter does not render properly #261

Closed
Leomaradan opened this issue Mar 29, 2019 · 3 comments
Closed

List view with filter does not render properly #261

Leomaradan opened this issue Mar 29, 2019 · 3 comments

Comments

@Leomaradan
Copy link
Contributor

Leomaradan commented Mar 29, 2019

Category

[ ] Enhancement

[X] Bug

[ ] Question

Version

Please specify what version of the library you are using: [1.12.0 ]

Expected

Select a value in the List View, type some text in the filter. If the item is hidden, the selection disapear and the selection event is triggered. If the item isn't hide by the filter, it remain selected

Observed Behavior

The selected item seems to be bound to the index of displayed items.

For exemple, if I select the item number 2 on the unfiltered listview, and I start to filter, the selection is shown on the new number 2 item, and the event for selection are not triggered. If I want to select the falsy-selected item, I have to click two-time on the element.

bug1
bug2
bug3

Steps to Reproduce

Put a list-view with item on a page
Add a trigger to check is the selection change
Typesome filter text

<ListView
items={this.props.items}
selection={this._getSelection}
selectionMode={SelectionMode.single}
showFilter={true}
></ListView>

@michaelmaillot
Copy link
Collaborator

Hi @Leomaradan,

In the latest version (3.15.0), the selected index is not bound to the index anymore:

spfx-controls-listview-selection-filter

However, if selection is outside the filtered data, it's not kept once filter reset. By now, it's the same behavior than the Fluent UI DetailsList component on which the ListView control relies.

Is it something required in On-Prem context only (which requests using version 1.x of the controls)? Or would you mind using latest version?

@ghost
Copy link

ghost commented Aug 28, 2023

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within next 7 days of this comment. Thank you for your contributions to SharePoint Developer activities.

@ghost ghost closed this as completed Sep 4, 2023
@ghost
Copy link

ghost commented Sep 4, 2023

Closing issue due no response from original author. If this issue is still occurring, please open a new issue with additional details. Notice that if you have included another related issue as additional comment on this, please open that also as separate issue, so that we can track it independently.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants