nova-inline-select icon indicating copy to clipboard operation
nova-inline-select copied to clipboard

Value don't saved if field used exceptOnForms() or hideWhenUpdating()

Open 4n70w4 opened this issue 5 years ago • 3 comments

            InlineSelect::make(__('Status'), 'status')
                ->options([...])
                ->exceptOnForms()
                ->inlineOnIndex()->inlineOnDetail(),

4n70w4 avatar Feb 06 '20 13:02 4n70w4

Workaround:

                ->canSee(function (NovaRequest $request) {
                    return false === $request->isUpdateOrUpdateAttachedRequest() && false === $request->isCreateOrAttachRequest();
                })

4n70w4 avatar Feb 06 '20 13:02 4n70w4

Thanks @4n70w4. I am curious, however, the use case for adding exceptOnForms(). The behavior of this field is just display on the index and/or detail views.

brandonferens avatar Feb 06 '20 18:02 brandonferens

Editing a record and changing status are two different events. Allows to make do both at the same time from a single screen - is unacceptable.

4n70w4 avatar Feb 07 '20 08:02 4n70w4