Skip to content

Commit

Permalink
fix(scene composer): show correct Icon field for tags with Custom Style
Browse files Browse the repository at this point in the history
  • Loading branch information
MO-Elmu authored and mukeshsahay committed Oct 25, 2023
1 parent bbc0aa3 commit a2239b8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ export const IconPicker = ({
else setNumRows(totalPages); // restore default when no text in search field.
}, [filteringText]);

useEffect(() => {
setIcon({
prefix: selectedIcon.prefix as IconPrefix,
iconName: selectedIcon.iconName as IconName,
});
}, [selectedIcon]);

const handleScroll = (event: React.UIEvent<HTMLDivElement>) => {
const { scrollTop, clientHeight, scrollHeight } = event.currentTarget;
if (scrollTop + clientHeight === scrollHeight && numRows < totalPages) {
Expand Down

0 comments on commit a2239b8

Please sign in to comment.