Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

feat(Dropdown): highlight option by letter key #902

Closed
wants to merge 1 commit into from

Conversation

silviuaavram
Copy link
Collaborator

@silviuaavram silviuaavram commented Feb 14, 2019

Only makes sense in non-search Dropdown.

Work in progress.

Postponed until some more important issues are fixed. Also needs some Downshift followups related to state updates, with highlightedIndex and isOpen.

@DustyTheBot
Copy link
Collaborator

Warnings
⚠️ There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

Generated by 🚫 dangerJS

@codecov
Copy link

codecov bot commented Feb 14, 2019

Codecov Report

Merging #902 into master will decrease coverage by 0.25%.
The diff coverage is 18.18%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #902      +/-   ##
==========================================
- Coverage   80.57%   80.32%   -0.26%     
==========================================
  Files         651      648       -3     
  Lines        8330     8366      +36     
  Branches     1420     1431      +11     
==========================================
+ Hits         6712     6720       +8     
- Misses       1603     1631      +28     
  Partials       15       15
Impacted Files Coverage Δ
...ackages/react/src/components/Dropdown/Dropdown.tsx 31.93% <18.18%> (-1.95%) ⬇️
.../themes/teams/components/Chat/chatMessageStyles.ts 20.83% <0%> (-2.98%) ⬇️
packages/react/src/components/Popup/Popup.tsx 71.72% <0%> (-0.15%) ⬇️
.../react/src/themes/teams-dark/componentVariables.ts 100% <0%> (ø) ⬆️
...ct/src/themes/teams-high-contrast/siteVariables.ts 100% <0%> (ø) ⬆️
...src/themes/teams/components/Avatar/avatarStyles.ts 33.33% <0%> (ø) ⬆️
.../themes/teams/components/Button/buttonVariables.ts 66.66% <0%> (ø) ⬆️
...emes/teams/components/Chat/chatMessageVariables.ts 100% <0%> (ø) ⬆️
packages/react/src/themes/teams/siteVariables.ts 100% <0%> (ø) ⬆️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc4953b...bf75713. Read the comment docs.

searchQuery: search ? '' : undefined,
value: multiple ? [] : null,
}
}

componentWillReceiveProps(newProps: DropdownProps) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!!! componentWillReceiveProps is deprecated and will be removed in future versions
Consider using componentDidUpdate, see:
https://reactjs.org/docs/react-component.html#unsafe_componentwillreceiveprops

@silviuaavram
Copy link
Collaborator Author

closing as it will be taken over by #1270

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants