Skip to content

Commit

Permalink
fix: disabled buttons with tab indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Nov 11, 2018
1 parent adbe4f0 commit 632e08e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/DOMutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export const isVisible = node => (
)
);

export const notHiddenInput = node => node.tagName !== 'INPUT' || node.type !== 'hidden';
export const notHiddenInput = node => !(
(node.tagName === 'INPUT' || node.tagName === 'BUTTON') &&
(node.type === 'hidden' || node.disabled)
);

const getParents = (node, parents = []) => {
parents.push(node);
Expand Down

0 comments on commit 632e08e

Please sign in to comment.