Skip to main content

Rihards Repels FirstFirst you can use this block use in our UI components xml FilesUI components xml Files.

<item name="buttons" xsi:type="array">
            <item name="back" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Back</item>
            <item name="delete" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Delete</item>
            <item name="reset" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Reset</item>
            <item name="save" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Save</item>
            <item name="save_and_continue" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\SaveAndContinue</item>
</item>

thenThen you can open save and continue block open and can you use this code

public function getButtonData() {
        return [
            'label' => __('Save and Continue Edit'),
            'class' => 'save',
            'data_attribute' => [
                'mage-init' => [
                    'button' => ['event' => 'saveAndContinueEdit'],
                ],
            ],
            'sort_order' => 80,
        ];

weWe also phasefaced this issue also, This code working you can use nowit.

Rihards Repels First you can use this block use in our UI components xml Files.

<item name="buttons" xsi:type="array">
            <item name="back" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Back</item>
            <item name="delete" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Delete</item>
            <item name="reset" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Reset</item>
            <item name="save" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Save</item>
            <item name="save_and_continue" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\SaveAndContinue</item>
</item>

then you can open save and continue block open and can you use this code

public function getButtonData() {
        return [
            'label' => __('Save and Continue Edit'),
            'class' => 'save',
            'data_attribute' => [
                'mage-init' => [
                    'button' => ['event' => 'saveAndContinueEdit'],
                ],
            ],
            'sort_order' => 80,
        ];

we also phase this issue also code working you can use now.

First you can use this block use in our UI components xml Files.

<item name="buttons" xsi:type="array">
            <item name="back" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Back</item>
            <item name="delete" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Delete</item>
            <item name="reset" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Reset</item>
            <item name="save" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Save</item>
            <item name="save_and_continue" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\SaveAndContinue</item>
</item>

Then you can open save and continue block open and can you use this code

public function getButtonData() {
        return [
            'label' => __('Save and Continue Edit'),
            'class' => 'save',
            'data_attribute' => [
                'mage-init' => [
                    'button' => ['event' => 'saveAndContinueEdit'],
                ],
            ],
            'sort_order' => 80,
        ];

We also faced this issue, This code working you can use it.

Source Link
Tushar
  • 513
  • 2
  • 9

Rihards Repels First you can use this block use in our UI components xml Files.

<item name="buttons" xsi:type="array">
            <item name="back" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Back</item>
            <item name="delete" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Delete</item>
            <item name="reset" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Reset</item>
            <item name="save" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\Save</item>
            <item name="save_and_continue" xsi:type="string">vendor\ProductComments\Block\Adminhtml\Index\Edit\Button\SaveAndContinue</item>
</item>

then you can open save and continue block open and can you use this code

public function getButtonData() {
        return [
            'label' => __('Save and Continue Edit'),
            'class' => 'save',
            'data_attribute' => [
                'mage-init' => [
                    'button' => ['event' => 'saveAndContinueEdit'],
                ],
            ],
            'sort_order' => 80,
        ];

we also phase this issue also code working you can use now.