The tabindex attribute was being set to the string “undefined” if the attribute was not specified. The fix is to only set the tabindex attribute if the attribute was specified.