diff --git a/package.json b/package.json index d708c6e..01b2d0e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/pashto-inflector", - "version": "1.4.3", + "version": "1.4.4", "author": "lingdocs.com", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "homepage": "https://verbs.lingdocs.com", diff --git a/src/components/ButtonSelect.tsx b/src/components/ButtonSelect.tsx index 2157cc0..e4a9eaf 100644 --- a/src/components/ButtonSelect.tsx +++ b/src/components/ButtonSelect.tsx @@ -34,7 +34,7 @@ function ButtonSelect(props: PickerProps) { style={{ ...props.xSmall ? { fontSize: "small" }: {}, - ...option.color ? + ...(option.color && (props.value === option.value)) ? { backgroundColor: option.color } : {}, }} >