Closed dissto closed 1 year ago
A note to whoever deals with this: $isConcealed
should be true for inputs inside a wizard
Looked into this. Unfortunately, the only way to fix it is to remove the type="email"
, which would then kill accessibility and usability on mobile (email-based keyboard). As such, and since this doesn't actually affect functionality, it's just a harmless console error, I am going to close this.
@danharrin Just a note, this is not just a console error. The user will actually get stuck not knowing what the issue is. The OP has only showed the console error to make it visible.
This sometimes happens with upcoming steps as well.
Package
filament/filament
Package Version
v2
Laravel Version
v10.10
Livewire Version
v2
PHP Version
PHP 8.1.0
Problem description
If you have a wizard with skippable steps and have an email field in any of the previous steps (required and email type) and you skip a step and submit the form, you will not be able to proceed, nor will you get any validation errors or any other default behavior.
The console in chrome throws the following error:
https://github.com/filamentphp/filament/assets/11778632/02fe03ef-990d-4b18-88e9-856ec7f591a1
Expected behavior
To either show the browser client-side validation error or the validation error messages, while focusing the field in question.
Steps to reproduce
namespace App\Filament\Resources\UserResource\Pages;
use App\Filament\Resources\UserResource; use Filament\Forms\Components\TextInput; use Filament\Forms\Components\Wizard\Step; use Filament\Pages\Actions; use Filament\Resources\Pages\CreateRecord;
class CreateUser extends CreateRecord { use CreateRecord\Concerns\HasWizard;
}