box / box/box-ui-elements

Folder deselection on navigate in ContentPicker

Open
#2,468 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
551
Forks
351
Avg merge
5d 9h
Merged PRs (30d)
31

Description

- Elements version: 12.0.0

**Desktop (please complete the following information):**

- OS: Windows 010
- Browser : Chrome, Edge, Firefox, IE

**Steps to reproduce the problem:**

**What is the expected behavior? (Screenshots can be helpful here)**
I am not 100% sure what the intended behaviour originally was but here are a few options:
- If user picks a folder, they can no longer navigate into it OR,
- if user picks a folder, it remains selected in the UI even after navigating inside

**What went wrong? (Screenshots, console logs, or HAR files can be helpful here)**
- If a user picks a folder and navigates inside, it is deselected in the list but is still an item in the event array when the select "choose" event

**Link to application or sample code:**
Can replicate this using the codepen samples and changing the picker to ContentPicker
https://codepen.io/chantellelee/pen/bGBwpdr

**If relevant, link to file (or attach file here)**
![boxpickerissue](https://user-images.githubusercontent.com/38863053/107426873-02f7a480-6ade-11eb-98f2-6d7e03c0254b.gif)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.