PharmaLedger-IMI / ctr-workspace

UC8 Clinical Trials Recruitment
MIT License
2 stars 0 forks source link

lforms browser freezes when a form repeatable item item is removed (by clicking on the "-") #8

Closed joaoluis-pdm closed 3 years ago

joaoluis-pdm commented 3 years ago

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

    optimization: {
      minimizer: [

by

  optimization: {
     minimize: false,
     minimizer: [

The ctr-patient/lhforms/dist/lforms-29.0.3/lforms.min.js is still produced but no longer minified.

joaoluis-pdm commented 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):

Best regards! I'll be online tomorrow.

joaoluis-pdm commented 3 years ago
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.