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

fix(Dropdown): added onClick override on DropdownItem #1248

Merged
merged 19 commits into from
Apr 24, 2019

Conversation

silviuaavram
Copy link
Collaborator

@silviuaavram silviuaavram commented Apr 22, 2019

It allows supplying an override to onClick for a DropdownItem.

For now I am not sure if we want a default stopPropagation from our code, open to debate.

@codecov
Copy link

codecov bot commented Apr 22, 2019

Codecov Report

Merging #1248 into master will increase coverage by 0.18%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1248      +/-   ##
=========================================
+ Coverage   71.91%   72.1%   +0.18%     
=========================================
  Files         731     731              
  Lines        5591    5592       +1     
  Branches     1612    1612              
=========================================
+ Hits         4021    4032      +11     
+ Misses       1565    1555      -10     
  Partials        5       5
Impacted Files Coverage Δ
...ackages/react/src/components/Dropdown/Dropdown.tsx 76.99% <100%> (+2.13%) ⬆️
...t/src/components/Dropdown/DropdownSelectedItem.tsx 73.07% <0%> (+11.53%) ⬆️

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 3d4af74...c859109. Read the comment docs.

@layershifter
Copy link
Member

Can you please add a UT for this?

@layershifter
Copy link
Member

And please mention in PR description and changelog that we stopped propagate events.

@silviuaavram silviuaavram merged commit db61411 into master Apr 24, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix-override-dropdownitem branch April 24, 2019 10:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants