I just verified that tabindex should be using `.attr` here and below. Apologies for the mix-up.