Skip to content

Conversation

wchen-obj
Copy link

@wchen-obj wchen-obj commented Sep 16, 2020

What does it do?

This change will always show the tree HTML in ".dropdown-content" when search in input so custom scrollbar package "Simplebar" can handle the list properly.
Please check the Codesandbox for a detail visual review of original package.

  • Open the dropdown and check the Simplebar custom scrollbar is applied to ".dropdown-content > ul" (the custom scrollbar shows always).
  • Search "xxx" in search input and "No matches found" shows.
  • Clear the search and the custom scrollbar is gone.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have performed a self-review of my own code

@coveralls
Copy link

coveralls commented Sep 16, 2020

Pull Request Test Coverage Report for Build 1516

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.901%

Totals Coverage Status
Change from base Build 1515: 0.0%
Covered Lines: 598
Relevant Lines: 619

💛 - Coveralls

@mrchief
Copy link
Collaborator

mrchief commented Sep 16, 2020

@wchen-obj Thanks for sending this. The Codesandbox uses the latest release and not your version so I'm not sure if this is not a breaking change. From what I can tell, with your change, the tree would be visible when no matches are found which is not the expected functionality.

@wchen-obj
Copy link
Author

With this change the tree's wrapper HTML will not being removed and while search the list items removes.

<div class="dropdown-content">
  <span class="no-matches">No matches found</span>
  <ul class="root searchModeOn" role="tree" aria-multiselectable="true">
    <div>
      <div class="infinite-scroll-component " style="height: auto; overflow: auto;"></div>
    </div>
  </ul>
</div>

@wchen-obj
Copy link
Author

@wchen-obj Thanks for sending this. The Codesandbox uses the latest release and not your version so I'm not sure if this is not a breaking change. From what I can tell, with your change, the tree would be visible when no matches are found which is not the expected functionality.

Sorry I don't know how to add my branch as a dependency in codesandbox could you please help with this so I can update it, thank you very much.

This codesandbox just show the issue I ran into when I use a custom scrollbar package to try to style tree dropdown.

@mrchief
Copy link
Collaborator

mrchief commented Sep 28, 2020

Sorry I don't know how to add my branch as a dependency in codesandbox could you please help with this so I can update it, thank you very much.

npm supports pointing to any git pointer in the package json. I haven't tried it but Codesandbox might also support it.

This codesandbox just show the issue I ran into when I use a custom scrollbar package to try to style tree dropdown.

I'm not sure what I supposed to expect so apologies for not getting it right away. This issue has been brought up several times in the past and I'm hesitant to bake in a custom scrollbar.

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 8f22087 and detected 0 issues on this pull request.

View more on Code Climate.

@stale
Copy link

stale bot commented Nov 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 8, 2020
@stale stale bot closed this Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants