melt-ui
melt-ui copied to clipboard
🐛Bug: Pasting into pin input with gboard for Android does not paste entire string
Describe the bug Pasting into a pin-input using the "paste from clipboard" button on gboard for Android causes only the last character in the copied string to be entered into the pin input.
To Reproduce
- Go to https://melt-ui.com/docs/builders/pin-input on an Android phone with gboard
- Copy a string of numbers from somewhere
- Select the pin input example in the melt-ui docs
- Use the gboard paste button above the keyboard to attempt to paste the string
- Notice that only the last character gets pasted
Expected behavior The entire string should be pasted, like when holding down and clicking the paste option.
Screenshots Screen recording demonstrating the issue:
https://github.com/melt-ui/melt-ui/assets/50769262/d8ec0122-c36c-4ed9-8666-2283a9d0cba7
Smartphone:
- Device: Oneplus 6
- OS: Android 11, OxygenOS 11.1.2.2
- Browser: Google Chrome
- Version: 119.0.6045.163
Additional context Also occurs in Brave for Android. When using Firefox, the paste button does not appear to show up at all.