mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Stop using deprecated getTabIndex() in CreditCardField
This commit is contained in:
parent
9052cdc1da
commit
592d42e477
@ -27,7 +27,7 @@ class CreditCardField extends TextField {
|
||||
* @return string
|
||||
*/
|
||||
protected function getTabIndexHTML($increment = 0) {
|
||||
$tabIndex = (int)$this->getTabIndex() + (int)$increment;
|
||||
$tabIndex = (int)$this->getAttribute('tabindex') + (int)$increment;
|
||||
return (is_numeric($tabIndex)) ? ' tabindex = "' . $tabIndex . '"' : '';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user