• Hi guys,

    one more bug in 3.0 discovered. After adding repeater control to column settings in Elementor 3.0 we get js errors when trying to remove/delete widgets from the column (the same happens with section as well).

    How to reproduce:
    we have made a fresh new install with a simple plugin containing following code:

    use Elementor\Controls_Manager;
    add_action( ‘elementor/element/column/section_style/before_section_end’, ‘my_test_repeater’, 10, 2 );
    function my_test_repeater( $element, $args ) {
    $element->add_control(
    ‘my_test_title’,
    [
    ‘label’ => ‘Test Title’,
    ‘type’ => Controls_Manager::HEADING,
    ]
    );

    $element->add_control(
    ‘my_width’,
    [
    ‘label’ => ‘Width’,
    ‘type’ => Controls_Manager::NUMBER,
    ]
    );

    $repeater = new \Elementor\Repeater();

    $repeater->add_control(
    ‘width’,
    [
    ‘label’ => ‘Width’,
    ‘type’ => Controls_Manager::NUMBER,
    ]
    );

    $element->add_control(
    ‘my_test_repeater’,
    [
    ‘type’ => Controls_Manager::REPEATER,
    ‘fields’ => $repeater->get_controls(),
    ‘title_field’ => ‘Test Repeater’
    ]
    );
    }

    This plugin adds repeater control to column settings.

    After adding a new section/column with some widgets to the page and by trying to remove / delete this widgets we get following js errors in console:

    https://prntscr.com/u66ypd

    common.min.js?ver=3.0.1:2 TypeError: Cannot set property children of #<Container> which has only a getter

    And widgets cannot be removed – nothing happens, widgets remain in column.
    Please be so kind to fix this asap. Thank you

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘3.0. After adding repeater control to column settings: js errors’ is closed to new replies.