Uncaught TypeError: Cannot read properties of null (reading 'insertBefore') AC2

Wappler Version : 6.0.0 b9
Operating System :
Server Model:
Database Type:
Hosting Type:

Expected behavior

Note: All working in AC1.

<div class="col" is="dmx-if" dmx-bind:condition="!comment_edit_mode.checked">
      <span style="color: #1E65D4; margin-bottom: 0; font-size: 14px" dmx-repeat:repeat1="mentions">
            <a href="" dmx-bind:href="'../profile/'+user_id+'/'+first_name+'-'+last_name" internal>{{'@'+full_name+' '}}</a>
      </span> 
     <p dmx-html="content.formatLinks()">A nice paragraph</p>
</div>

Actual behavior

Screenshot 2023-09-27 at 8.14.50 AM

How to reproduce

I have a repeat with a series of comments. With the click of a dropdown, a toggle within the repeat is checked to indicate the comment is in edit mode. Conditional regions are controlled via this toggle.

The initial display of this condition works fine, but when the edit toggle is thrown, the error above is generated.

The trouble is coming from the span tag that is a dmx-repeat. When I comment out that span, the error goes away.

Bump.

Fixed in Wappler 6.3.1

This topic was automatically closed after 45 hours. New replies are no longer allowed.