Snippet Selection Bug?

Hi,

While adding a handlebar snippet to my template, adding code to it and saving. Once I open the snippet again and try to select all text from bottom to top (mouse drag selection) I get these errors:



If I move my mouse up or down while the first error at the back is visible, my text selection also moves/selects lines causing the second error to pop up. It gets stuck in a ‘loop’ until you move your mouse down so no lines are selected. Only then can you close the first error and get out the ‘loop’. Selecting text in the snippet from top down is fine though.

Can anybody reproduce?

Regards,
S

Hello @Sharne, would you be able to share the HTML of your Handlebars template (“snippet”) please? Because I couldn’t reproduce the issue so far when having very basic HTML applied to a snippet.

Hi Marten,

Thanks for the reply. I struggled with this for more than an hour yesterday. Even after I rebooted my laptop, that is why I asked here to check before opening a ticket. Before I figured out how to get rid of the errors I was force closing the designer since I had no other way to get rid of the error ‘loop’, but force closing caused multiple Designers in task manager which gave more issues till I noticed. Even Ctrl+A was giving me errors after I posted when selecting all text in the .hbs file.

I have tried again this morning and I cannot reproduce the errors now on my side.

One error I did not manage to get a screenshot of also mentioned my .hbs file on disk.

I will keep an eye on it and should it happen again I will be sure to grab logs for support.

I was just playing around with a detail table in a snippet but later went with a HTML snippet. Here is the test table source I was using.

<table id="tableState" class="tableStatement--striped" data-column-resize="" data-hide-when-empty="" style="width :30%" data-expander="2019">
    <thead>
        <tr>
            <th style="text-align: left; width: 3.51%;">
                <span style="font-size: 7pt;"></span><br>
            </th>
            <th style="text-align: left; width: 29.5%;"><span data-translate="" style="font-size: 7pt;">REFERENCE</span></th> 
            <th style="text-align: left; width: 25.01%;"><span data-translate="" style="font-size: 7pt;">DISCRIPTION</span></th> 
            <th style="text-align: center; width: 18.08%; padding: 0px;">
                <span data-translate="" style="font-size: 7pt;">WATER QUOTA</span> 
            </th>
            <th style="text-align: center; width: 9.66%;"><span data-translate="" style="font-size: 7pt;">VAT</span></th> 
            <th style="text-align: right; width: 14.25%;"><span data-translate="" style="font-size: 7pt;">AMOUNT</span></th> 
        </tr>
    </thead>
    <tbody>
    {{#each this}}
        <tr data-repeat="StateTable">
            <td style="text-align: left; background-size: contain; background-position: center center; background-repeat: no-repeat; padding: 0px; border-right-width: 0pt; border-right-style: none; border-top-width: 0.25pt; border-top-style: solid; border-bottom-width: 0.25pt; border-bottom-style: solid;">
            </td>
            <td style="text-align: left; border-left-width: 0pt;"><span style="font-size: 7pt;">{{{Ref}}}</span></td> 
            <td colspan="2" style="text-align: left;">
                <span style="font-size: 7pt;">{{{Desc}}}</span><span style="font-size: 7pt;"></span><br>
            </td>
            <td style="text-align: right; white-space: pre;"><span style="font-size: 7pt;">{{{VAT}}}</span></td> 
            <td style="text-align: right; white-space: pre;"><span style="font-size: 7pt; white-space: pre;">{{{Amnt}}}</span></td> 
        </tr>
     {{/each}}
    </tbody>
</table>

EDIT: OL Connect Professional 2026.1.1.

Regards,
S

1 Like