Skip to content

Commit

Permalink
Merge pull request #2100 from samyak3009/fix-select-custom-label
Browse files Browse the repository at this point in the history
chore(select): show custom label when option selected is more than 2 options
  • Loading branch information
anuradha9712 authored Mar 13, 2024
2 parents 53f972d + 85680e7 commit 1b35649
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export const multiSelect = () => {
};

const setLableHandler = (count) => {
return `${count} Medicines`;
if (count > 2) {
return `${count} Medicines`;
}
};

return (
Expand Down Expand Up @@ -60,7 +62,9 @@ const customCode = `() => {
};
const setLableHandler = (count) => {
return \`\${count} Medicines\`;
if (count > 2) {
return \`\${count} Medicines\`;
}
}
return (
Expand Down

0 comments on commit 1b35649

Please sign in to comment.