Our blazing fast Grid component built with pure JavaScript


Post by henrique »

My problem with the tabIndex is that I created a widget to show an image. But the image get focus when I use the keyboard to navigate between the controls and this is a problem. This is the why I suggested to put the TabIndex configuration in the widget and not in the Field and Button.

If exists a workaround for this, please send me a reply.


Post by alex.l »

Did you try to add tabIndex=-1 to the image element itself? https://stackoverflow.com/questions/20962020/prevent-certain-elements-from-receiving-focus

All the best,
Alex


Post by henrique »

In my custom widget, is just put the tabIndex -1 in the compose function?


Post by marcio »

Hey henrique,

Sorry for the late reply. Yes, simple as that. I tested here

 compose() {
        return {
            tabIndex : -1,
Attachments
Screenshot 2024-01-23 at 15.23.40.png
Screenshot 2024-01-23 at 15.23.40.png (83.48 KiB) Viewed 272 times

Best regards,
Márcio


Post Reply