Support

Account

Forum Replies Created

  • Well it doesn’t solve the problem completely, but it did change the click on a conditional field from 1.5s to beneath 300ms. But it still seems to go up when I add more repeater fields. I think it happens because when a condition is changed it still searches trough all the siblings of a repeater field.

    • Repeater

      • Child
      • Child
    • Repeater

      • Child
      • Child

    When i change a condition in the first repeater, it should not check for changes in the second repeater. But this does happen causing lag.

    But the above solution made my environment workable again, I think everybody could test it.

  • I also had this problem, I found the answer to be in the included javascript of the repeater field (acf-repeater/js/input.js).

    At the end of input.js there is this part:

    $(document).on('mouseenter', '.repeater tr.row', function( e ){
    		
    		// vars
    		var $el = $(this).find('> td.remove > a.acf-button-add'),
    			margin = ( $el.parent().height() / 2 ) + 9; // 9 = padding + border
    		
    		
    		// css
    		$el.css('margin-top', '-' + margin + 'px' );
    		
    	});
    	
    	$(document).on('acf/conditional_logic/show acf/conditional_logic/hide', function( e, $target, item ){
    		// Makes shit crappy slow
    		$target.closest('tr.row').trigger('mouseenter');
    		
    	});

    Just comment it out, and everything is fast again.

Viewing 2 posts - 1 through 2 (of 2 total)