From 8c1e4436eeaf581b64e5eb8af452d42a886fdfd5 Mon Sep 17 00:00:00 2001 From: ducica Date: Mon, 16 Sep 2024 21:50:46 +0200 Subject: [PATCH] passing highlight handlers to button prop --- .../forms/components/ArrayFieldItem/ArrayFieldItem.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oarepo_ui/theme/assets/semantic-ui/js/oarepo_ui/forms/components/ArrayFieldItem/ArrayFieldItem.jsx b/oarepo_ui/theme/assets/semantic-ui/js/oarepo_ui/forms/components/ArrayFieldItem/ArrayFieldItem.jsx index f1650de8..9f51ae25 100644 --- a/oarepo_ui/theme/assets/semantic-ui/js/oarepo_ui/forms/components/ArrayFieldItem/ArrayFieldItem.jsx +++ b/oarepo_ui/theme/assets/semantic-ui/js/oarepo_ui/forms/components/ArrayFieldItem/ArrayFieldItem.jsx @@ -49,6 +49,8 @@ export const ArrayFieldItem = ({ arrayHelpers={arrayHelpers} indexPath={indexPath} id={removeButtonId} + onMouseEnter={() => setHighlighted(true)} + onMouseLeave={() => setHighlighted(false)} {...removeButtonProps} /> ) : (