Topic: Keyboard move buttons rearrange cards but do not save the layout
Lena Meyer
free
asked 6 days ago
We added Move up and Move down buttons to make the dashboard usable without dragging. The buttons move the existing card elements correctly, but refreshing restores the old order. Pointer dragging saves successfully.
Our save function is called only from the pointer completion handler. Should the keyboard buttons call that same function after moving a card, or should we try to simulate a pointer event?
Igor Przybysz
staff
answered 5 days ago
Call the same application persistence function after a successful keyboard move. It should read the current real card IDs and save their sequence regardless of whether the change came from dragging, a button or another supported action. There is no need to synthesize a pointer interaction.
Keep focus on the moved card's control, update the available move actions at the boundaries, and announce the new position through your existing accessibility feedback. Skip the save when a boundary button cannot change the order.
https://mdbootstrap.com/docs/standard/plugins/drag-and-drop/
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 9.3.0
- Device: Laptop
- Browser: Edge
- OS: Windows 11
- Provided sample code: No
- Provided link: No