Session recoding - Masking PII data does not work on (React) controlled input component

Adding data-matomo-mask to the only masks the input value if it is not controlled(handled by the DOM). If the is controlled (handled by a React component), the input value is not masked.
Is there any way we can do to mask the controlled input?

contacted via support channel