Skip to content

Commit

Permalink
fix: fix #dropdown scrolling issue on touch devices
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed May 8, 2019
1 parent 82d10f9 commit 9d96531
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/dnb-ui-lib/src/components/dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,6 @@ export default class Dropdown extends Component {
title={Dropdown.parseContentTitle(dataItem)}
className="dnb-dropdown__option__inner"
data-item={i}
onTouchStart={this.selectItemHandler}
onMouseDown={this.selectItemHandler}
role="button"
tabIndex="-1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe('Dropdown component', () => {
)
})

it('has correct selected value', () => {
it('has correct selected value after new selection', () => {
Comp.find('li.dnb-dropdown__option')
.find('.dnb-dropdown__option__inner')
.at(props.selected_item + 1)
Expand Down

0 comments on commit 9d96531

Please sign in to comment.