ComPlat / react-spectra-editor

An editor to View and Edit Chemical Spectra data (NMR, IR and MS).
GNU Affero General Public License v3.0
9 stars 5 forks source link

Wrong integration value after changing `ref area` value #202

Closed baolanlequang closed 5 months ago

baolanlequang commented 5 months ago

Step to reproduce:

  1. Click on the Add Integration button
  2. Draw on plot to add new integration
  3. Click to change the value of Ref Area
  4. Draw on the plot to add a new integration
  5. The newly added integration is too big

The issue can be when changing Ref Area, the Add Integration button loses its focus because the issue doesn't occur when click on Add Integration button after changing Ref Area

baolanlequang commented 5 months ago

Fixed by https://github.com/ComPlat/react-spectra-editor/pull/205