Closed joaoluis-pdm closed 3 years ago
https://opendsu.slack.com/archives/C01D9AR924X/p1620843097006600
I have a "bug" candidate in webcardinal, that arises when webcardinal handles events from 3rd party libraries.
In this particular case, there is a 3rd party library event that seems to leave webcardinal in an infinite loop, and freezes the browser.
How to reproduce (tested in chrome):
if (target.parentElement) {
target = target.parentElement;
continue;
}
into
if (target.parentElement) {
target = target.parentElement;
continue;
} else {
break;
}
but not really sure if that is a proper solution.
Best regards! I'll be online tomorrow.
Deny há 13 dias
Final modification / invariant: target = target.parentElementhttps://github.com/webcardinal/webcardinal-core/commit/37f1ca71f0514b7aab158a2f537c900ccca1cde0#diff-3c9c63cc5c02947e53d[…]2690b6dcc257e6f5a7f0bR253 (editado)
João Luís (PDM) há 7 dias
Just to confirm that the problem is fixed.
On a form repeatable item, when an item is removed (by clicking on the "-") the browser freezes.
Using ctr-patient/lhforms/dist/lforms-29.0.3/lforms.min.js
<script src="assets/lforms/lforms.min.js"></script>
Hint: To disable minification for debugging purposes, edit the local copy of https://github.com/lhncbc/lforms/blob/master/webpack.config.js
and replace
by
The ctr-patient/lhforms/dist/lforms-29.0.3/lforms.min.js is still produced but no longer minified.