PharmaLedger-IMI / acdc-components

UC4 Anti-Counterfeiting Data Collaboration
MIT License
3 stars 4 forks source link

LForms freeze browser on repeatable form item removal #5

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

Wrong use-case. :-(