We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 61d01a4 + 199834c commit d990c1dCopy full SHA for d990c1d
src/js/components/FontIconPicker.jsx
@@ -107,13 +107,13 @@ class FontIconPicker extends React.PureComponent {
107
);
108
109
// Set internal category to 0 if not showing category
110
- if (!nextProps.showCategory) {
+ if (!nextProps.showCategory && prevState.currentCategory !== 0) {
111
newState.currentCategory = 0;
112
newState.currentPage = 0;
113
}
114
115
// Set internal search to empty, if not showing search
116
- if (!nextProps.showSearch) {
+ if (!nextProps.showSearch && prevState.currentSearch !== '') {
117
newState.currentSearch = '';
118
119
0 commit comments