Preact: Update nature after applying optimizer (#2557)
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run

Untested, but I think it’s pretty obvious that this is why the optimizer isn’t changing nature currently when applied. The function above is basically the same function, but with this extra line.
This commit is contained in:
pyuk-bot 2025-12-03 06:34:43 -06:00 committed by GitHub
parent f12dec091d
commit 7f4f9755e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2633,6 +2633,7 @@ class StatForm extends preact.Component<{
set.evs = optimized.evs;
this.plus = optimized.plus || null;
this.minus = optimized.minus || null;
this.updateNatureFromPlusMinus();
this.props.onChange();
};
renderSpreadGuesser() {