Closed nzreal closed 3 years ago
@nzreal I have try this PR (61bbc7a) in local dev, but it seems also CANNOT work while click on div
,p
,span
, etc.
@nzreal I have try this PR (61bbc7a) in local dev, but it seems also CANNOT work while click on
div
,p
,span
, etc.
example click <Keypress>
like here
after fix: special handling ... forwardRef
(a7f5ec2), actually it will jump when click <Keypress>Ctrl</Keypress>
,
but the jump position is as same as before, in Keypress component return code <S.KeyTone>
, like master branch.
@zthxxx It's a special example that it dosen't work well on Context
or forwardRef
components. But It will work correctly when click normal components, such as the repo i offered you before. I'm finding out all of the special situations and figuring out how to deal with the special situation stably
@nzreal Thanks for your great work, could you just add (or change) a demo component in ./sites/umi3/src
?
@zthxxx you're welcome
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/zthxxx/react-dev-inspector/A8tKrRmw9xVa6384uuwfEPSxcdW2
✅ Preview: https://react-dev-insp-git-fork-nzreal-improve-inspect-the-place-9c2b25.vercel.app
@nzreal thanks a lot! I see your demo commit so I see what you means, and I pushed a commit to adjust demo components style, so we can test this feature with origin <Keypress>
component which we use it for example a lot.
One more things, I add Vercel preview deploy for all PR, so that we can review this feature with an online demo site, see:
@zthxxx wow, that's cool. Next enhancement version i can use it to review
in reviewing
@nzreal if you review and confirm after 95970d0 , I will merge this PR
the fiber may be empty, so i add a logic to judge that
the fiber may be empty, so i add a logic to judge that
@nzreal for example?
the fiber may be empty, so i add a logic to judge that
@nzreal sorry, i found that's types error, and fixed in dfd2b22, please review again
before:
after: