Skip to content

Commit

Permalink
Merge pull request #270 from dwijesingheWR/master
Browse files Browse the repository at this point in the history
Fixed bug where selecting the first emoji search result with the ENTER KEY ignores skin tone selection
  • Loading branch information
nolanlawson authored Mar 8, 2019
2 parents bae7afb + 17db4cc commit 420e2c7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/picker/nimble-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PropTypes from 'prop-types'
import * as icons from '../../svgs'
import store from '../../utils/store'
import frequently from '../../utils/frequently'
import { deepMerge, measureScrollbar } from '../../utils'
import { deepMerge, measureScrollbar, getSanitizedData } from '../../utils'
import { uncompress } from '../../utils/data'
import { PickerPropTypes, PickerDefaultProps } from '../../utils/shared-props'

Expand Down Expand Up @@ -396,7 +396,12 @@ export default class NimblePicker extends React.PureComponent {

if (
this.SEARCH_CATEGORY.emojis &&
(emoji = this.SEARCH_CATEGORY.emojis[0])
(emoji = getSanitizedData(
this.SEARCH_CATEGORY.emojis[0],
this.state.skin,
this.props.set,
this.props.data,
))
) {
this.handleEmojiSelect(emoji)
}
Expand Down

0 comments on commit 420e2c7

Please sign in to comment.