Skip to content

Commit

Permalink
jsx-a11y/no-interactive-element-to-noninteractive-role & no-cond-assi…
Browse files Browse the repository at this point in the history
…gn fixed
  • Loading branch information
brbrr committed Mar 18, 2019
1 parent 75e7cb7 commit 9f25203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion _inc/client/components/form/index.jsx
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion _inc/client/components/search/index.jsx
Expand Up @@ -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 }
Expand Down

0 comments on commit 9f25203

Please sign in to comment.