primereact icon indicating copy to clipboard operation
primereact copied to clipboard

DataTable: Can't move cursor with click for input components

Open dancras opened this issue 4 months ago • 0 comments

Describe the bug

When inside a DataTable, input components (eg InputText, InputNumber) don't allow clicking to move the cursor.

  • Outside a DataTable they work as expected
  • The problem was introduced in the release of 10.8.3 (rolling back to 10.8.2 in the stackblitz fixes it)

Reproducer

https://stackblitz.com/edit/vitejs-vite-vdkijt?file=src%2FApp.tsx

System Information

See stackblitz

Steps to reproduce the behavior

  1. Open the stackblitz
  2. Try to click the inputs outside the table
  3. See that cursor is positioned where you click
  4. Try to click the inputs inside the table
  5. See that cursor is always at the end of the value

Expected behavior

Cursor should move to where clicked as previously

dancras avatar Oct 21 '24 13:10 dancras