fix: number inputs not updating values between tabs

This commit is contained in:
trafficlunar 2026-03-29 21:55:40 +01:00
parent 7925c9e2f5
commit 825f74ef6d
4 changed files with 9 additions and 8 deletions

View file

@ -60,7 +60,7 @@ export default function EyesTab({ instructions }: Props) {
<div className="absolute inset-0 flex flex-col justify-center items-center">
<ColorPicker disabled={currentTab.colorsDisabled} color={colors[tab]} setColor={setColor} tab={tab === 5 ? "eyeliner" : "eyes"} />
<NumberInputs target={instructions.current.eyes[currentTab.name]} />
<NumberInputs key={tab} target={instructions.current.eyes[currentTab.name]} />
</div>
</>
);