{ updatedValue = e.currentTarget.value; // Only update when value is not empty to prevent resetting the input if (updatedValue !== '') { value = updatedValue; } }} on:blur={() => (value = updatedValue)} />