diff --git a/_inc/client/components/form/index.jsx b/_inc/client/components/form/index.jsx index 0e42a2c92069f..962e3c9ae749d 100644 --- a/_inc/client/components/form/index.jsx +++ b/_inc/client/components/form/index.jsx @@ -72,7 +72,8 @@ const luhnChk = ( function( arr ) { while ( len ) { val = parseInt( ccNum.charAt( --len ), 10 ); - sum += ( bit ^= 1 ) ? arr[ val ] : val; + bit ^= 1; + sum += bit ? arr[ val ] : val; } return sum && sum % 10 === 0; diff --git a/_inc/client/components/search/index.jsx b/_inc/client/components/search/index.jsx index d643a02e05e37..48929fcf28daa 100644 --- a/_inc/client/components/search/index.jsx +++ b/_inc/client/components/search/index.jsx @@ -353,7 +353,7 @@ class Search extends React.Component { id={ 'dops-search-component-' + this.state.instanceId } className={ inputClass } placeholder={ placeholder } - role="search" + role="searchbox" value={ searchValue } ref="searchInput" onKeyUp={ this.keyUp }