You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently working on some ADA requirements adjustments and i need the Google Pay button to be on focus when my page loads.
I tried a couple different solutions. The one i currently have is to use the onReadyToPayChange callback and if isButtonVisible is true, i get the button via jquery and force the focus.
I would like to be able to the pass the html autoFocus attribute as a prop instead of forcing the focus using js.
I could't find in the Google Pay API docs the option to pass the attribute. So one possible solution could be to add the autofocus attribute (and any other native html attr) after the Google Pay client creates the button.
I'm currently working on some ADA requirements adjustments and i need the Google Pay button to be on focus when my page loads.
I tried a couple different solutions. The one i currently have is to use the
onReadyToPayChange
callback and ifisButtonVisible
is true, i get the button via jquery and force the focus.I would like to be able to the pass the html
autoFocus
attribute as a prop instead of forcing the focus using js.I could't find in the Google Pay API docs the option to pass the attribute. So one possible solution could be to add the
autofocus
attribute (and any other native html attr) after the Google Pay client creates the button.The text was updated successfully, but these errors were encountered: