filament/filament
V3.2.0
v11
No response
PHP 8.3
When I have two tabs in the form, if both tabs have Chinese titles, then their contents are merged into one, and both tabs are in a selected state.
When using tabs, Chinese characters should be handled correctly.
Tabs\Tab::make(__('基本信息'))->schema([
TextInput::make('title')
->label(__('Post Title'))
->required()
->maxLength(255)
->live(onBlur: true)]),
Tabs\Tab::make(__('(E)扩展信息'))->schema([
Placeholder::make(__('扩展信息')),
Hidden::make('user_id')
->default(auth()->user()->id)
->required(),
Hidden::make('post_type')
->default('post')
->required()])
When I use the above code, the error occurs. If I change it to the following code, the result is correct.
Tabs\Tab::make(__('Title '))->schema([
TextInput::make('title')
->label(__('Post Title'))
->required()
->maxLength(255)
->live(onBlur: true)]),
Tabs\Tab::make(__('Other Info '))->schema([
Placeholder::make(__('扩展信息')),
Hidden::make('user_id')
->default(auth()->user()->id)
->required(),
Hidden::make('post_type')
->default('post')
->required()])
https://github.com/cityisempty/filament-issue
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too