Skip to content

Commit

Permalink
v1.11.9-alpha-6
Browse files Browse the repository at this point in the history
  • Loading branch information
sujan-s committed Jan 6, 2025
1 parent aba01f7 commit 1278e0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fictoan-react",
"version": "1.11.9-alpha.5",
"version": "1.11.9-alpha.6",
"private": false,
"description": "A full-featured, designer-friendly, yet performant framework with plain-English props and focus on rapid iteration.",
"repository": {
Expand Down
6 changes: 2 additions & 4 deletions src/components/OptionCard/OptionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,9 @@ export const OptionCardsGroup = React.forwardRef<OptionCardsGroupRef, OptionCard
}, [onSelectionChange]);

// Set default selected options ================================================================================
const setSelectedOptions = useCallback((ids: string[], triggerChange: boolean = true) => {
const setSelectedOptions = useCallback((ids: string[]) => {
setSelectedIds(new Set(ids));
if (triggerChange) {
onSelectionChange?.(new Set(ids));
}
onSelectionChange?.(new Set(ids));
}, [onSelectionChange]);

const isSelected = useCallback((id: string) => {
Expand Down

0 comments on commit 1278e0c

Please sign in to comment.