Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

fix(whatInput): use proper document to set data-whatinput attr #1972

Merged
merged 9 commits into from
Sep 25, 2019

Conversation

layershifter
Copy link
Member

@layershifter layershifter commented Sep 25, 2019

Fixes #1971.


This PR fixes our fork of what-input to properly set data-whatinput attribute as our :focus-visible implementation dependents on it.

if (event.target.classList && event.target.classList.length) {
docElem.setAttribute('data-whatclasses', event.target.classList.toString().replace(' ', ','))
}
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use data-whatclasses & data-whatelement, so it's safe to remove them

@codecov
Copy link

codecov bot commented Sep 25, 2019

Codecov Report

Merging #1972 into master will increase coverage by 0.06%.
The diff coverage is 60%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1972      +/-   ##
==========================================
+ Coverage    70.3%   70.37%   +0.06%     
==========================================
  Files         894      894              
  Lines        7905     7889      -16     
  Branches     2314     2288      -26     
==========================================
- Hits         5558     5552       -6     
+ Misses       2334     2324      -10     
  Partials       13       13
Impacted Files Coverage Δ
packages/react/src/lib/whatInput.ts 62.96% <60%> (+4.2%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c7af11c...14f58e8. Read the comment docs.

@vercel vercel bot temporarily deployed to staging September 25, 2019 13:59 Inactive
@layershifter layershifter merged commit 4125458 into master Sep 25, 2019
@layershifter layershifter deleted the fix/what-input branch September 25, 2019 16:23
layershifter added a commit that referenced this pull request Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🧰 fix Introduces fix for broken behavior. 🚀 ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

:focus-visible is broken for child windows
2 participants