Action Of TextInput
hi i have this piece of code, what im doing wrong ? because on the repeater or normal form suffixAction or hintAction works well, but inside the fieldset didnt work anything
Components\Fieldset::make('qr')
....
->schema([
...
Components\TextInput::make('qr_link')
->label("Link Diretto")
->columnSpanFull()
->hintAction( // This not work Hint or suffix//
Action::make('copyCostToPrice')
->icon('heroicon-m-clipboard')
->requiresConfirmation()
->action(function ($livewire, $state) {//never reached
$livewire->js("
window.navigator.clipboard.writeText('" . $state . "');
");
dd('copied');
})
),
Components\Repeater::make('links')
->schema([
....
Components\TextInput::make('link')
->suffixAction( //This Work
Action::make('copy')
->icon('heroicon-s-clipboard-document-check')
->action(function ($livewire, $state) {
$livewire->js("
window.navigator.clipboard.writeText('" . $state . "');
");
})
)
->label("")
->columnSpan(1)
->readOnly()
])
]),
when i press the action icon livewire do the classic update, so i think im missing something .0 Replies