mrgnlabs/mrgn-ts

[marginfi v2 ui] Numeric input fields displayed and underlying value are different

losman0s opened this issue · 0 comments

The numeric input fields used throughout the app have a "max" value functionality, meant to prevent its value from going over the specified max. This works fine for the internal/underlying value tracked by the component, but the text displayed can be anything the user inputs manually, leading to confusion.

The cause seems related to the library component we use. Let's either:

  • fix the existing code if it's easy enough, or
  • make a custom component instead