Skip to content

Commit

Permalink
reset state on prop change for detailList
Browse files Browse the repository at this point in the history
closes #1977

Signed-off-by: Lukas Boll lukas-bool@web.de
  • Loading branch information
LukasBoll authored and sdirix committed Aug 22, 2022
1 parent 1eda309 commit 59b39c3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ export const MaterialListWithDetailRenderer = ({
);
const appliedUiSchemaOptions = merge({}, config, uischema.options);

React.useEffect(() => {
setSelectedIndex(undefined);
}, [schema]);

return (
<Hidden xsUp={!visible}>
<ArrayLayoutToolbar
Expand Down

0 comments on commit 59b39c3

Please sign in to comment.