@omniumretail/component-library 1.2.21 → 1.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -354,13 +354,13 @@ export const CategoryResponse = React.forwardRef((props: CategoryResponse, ref)
|
|
|
354
354
|
|
|
355
355
|
{props.addButtons &&
|
|
356
356
|
<>
|
|
357
|
-
{(form.getFieldValue(`Questions`)?.[index].Note || isNoteVisible) &&
|
|
357
|
+
{(form.getFieldValue(`Questions`)?.[index].Note || (isNoteVisible && showNote)) &&
|
|
358
358
|
<div className={styles.noteContainer}>
|
|
359
359
|
<span className={styles.note}>{t('components.categoryResponse.note')}: </span>
|
|
360
360
|
|
|
361
361
|
<Form.Item name={["Questions", index, "Note"]} className={styles.form}>
|
|
362
362
|
<TextArea
|
|
363
|
-
disabled={!isNoteVisible}
|
|
363
|
+
disabled={(!isNoteVisible || !showNote)}
|
|
364
364
|
variant={showNote ? "outlined" : "borderless"}
|
|
365
365
|
onBlur={() => setIsNoteVisible(null)}
|
|
366
366
|
className={styles.textArea}
|