Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight parent in case one of the grand children has been changed #22

Open
medhatdawoud opened this issue Nov 29, 2019 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@medhatdawoud
Copy link
Owner

whenever we have the ref on an element and one of its children get changed using state it gets highlighted, that's the normal case, but what I want to add here as a feature is whenever one of its children or grandchildren changed I need to highlight the whole container.

example

<ChangeHighlight>
  <div className="div1" ref={React.createRef()}>
    <div className="div2">
      <div className="div3">{changeHappenedHere}</div>
      <p>...</p>
    </div>
  </div>
</ChangeHighlight>

in this example nothing will happen with the current implementation v1.2.3 I need div1 to be highlighted in case of the content of div3 changed.

@medhatdawoud medhatdawoud added the enhancement New feature or request label Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant