Fix lot_suffix input: switch to live(onBlur) to prevent typing interference
Deploy / deploy (push) Successful in 14s
Deploy / deploy (push) Successful in 14s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
5c034ec895
commit
b90c00cf34
2 files changed
+2
-2
No files matched your search
@@ -72,7 +72,7 @@ class BatchResource extends Resource
|
|||||||
->maxLength(50)
|
->maxLength(50)
|
||||||
->required()
|
->required()
|
||||||
->dehydrated(false)
|
->dehydrated(false)
|
||||||
->live()
|
->live(onBlur: true)
|
||||||
->afterStateHydrated(function ($component, $record) {
|
->afterStateHydrated(function ($component, $record) {
|
||||||
if (! $record?->lot_number) return;
|
if (! $record?->lot_number) return;
|
||||||
$pos = strrpos($record->lot_number, '-');
|
$pos = strrpos($record->lot_number, '-');
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@ class BatchesRelationManager extends RelationManager
|
|||||||
->maxLength(50)
|
->maxLength(50)
|
||||||
->required()
|
->required()
|
||||||
->dehydrated(false)
|
->dehydrated(false)
|
||||||
->live()
|
->live(onBlur: true)
|
||||||
->afterStateHydrated(function ($component, $record) {
|
->afterStateHydrated(function ($component, $record) {
|
||||||
if (! $record?->lot_number) return;
|
if (! $record?->lot_number) return;
|
||||||
$pos = strrpos($record->lot_number, '-');
|
$pos = strrpos($record->lot_number, '-');
|
||||||
|
|||||||
Reference in new issue
Block a user