Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set tabindex on footer of calendar widget #1145

Open
garethquirke opened this issue Jul 12, 2023 · 0 comments
Open

Unable to set tabindex on footer of calendar widget #1145

garethquirke opened this issue Jul 12, 2023 · 0 comments

Comments

@garethquirke
Copy link

image

The tabindex is hardcoded and I have no options to control it for the footer button of the calendar.

The only options for the footer are:
footer: boolean (display it)
footerFormat: string

Have tried to set the tab index by using a hook and accessing the DOM element to set attribute but that fails to work.

` React.useEffect(() => {
const footerElement = document.querySelector('.rw-calendar-footer .rw-btn');

    if (footerElement) {

        footerElement.setAttribute("tabindex", "0");
        footerElement.tabIndex = 0;
        footerElement.tabindex = 0;
    }
}, [openState]);`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant