Skip to content

Conversation

@himdel
Copy link
Contributor

@himdel himdel commented Apr 27, 2020

Updates the fonticon picker component (#6985) to react when clicking on the whole element, instead of only the chevron.

For consistency with selects, and general ease of use :)

The problem:

20200427123900 mp4

Now clicking the icon also shows the modal.

…hevron

for consistency with selects, and general ease of use :)
setState(state => ({ ...state, showModal: false, selectedIcon: activeIcon }));
};

const hideModal = () => setState(state => ({ ...state, showModal: false }));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed because we already have a showModal boolean

@h-kataria h-kataria requested a review from skateman April 27, 2020 17:47
@h-kataria h-kataria self-assigned this Apr 27, 2020
Copy link
Member

@skateman skateman left a comment

Choose a reason for hiding this comment

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

The Seal of Approval

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants