Description
What version of strapi-design-system are you using?
- Strapi Design System Version: 1.2.7
What's Wrong?
I'm using Table and TextInput to customize Strapi's admin panel. Previously the design system works fine with dynamically created rows and TextInputs within the table cell. However not sure since which version, it doesn't work any more. When clicking on any input element it will be unfocused immediately. After hours of debuging I found that it was due to the focus event for these controls. focusableNodes
in https://github.com/strapi/design-system/blob/fe27b82d12f8cd9875518adbefc478877e7fb5a7/packages/strapi-design-system/src/RawTable/RawCell.js doesn't reflex any newly added items.
This is really very rigid. Please consider allowwing dynamically created inputs to get focus.
To Reproduce
Create a Table
, and within Td
, add some TextInput
s using Javascript, then try to click the newly created inputs, they will get unfocused immediately
Expected Behaviour
All input fields should be able to get focus except the disabled ones.