I am currently making a react component where I am working with numbers.
There is an input tag for numbers, it formats the number while typing.

If I enter 50000.50 it will automatically format it to 50,000.50

Now I want to highlight this number using mouse and copy it. After pasting it to some other place it should paste it in non-formatted way like: 50000.50 (copying the actual number without the separators)

I have seen somewhere that when you select the numbers it does not highlight the separators. I want something like that. But struggling to find it.

Please help me!!!