-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
fix: popup shift to left in the first render when set strech property to trigger #420
Conversation
Codecov Report
@@ Coverage Diff @@
## master #420 +/- ##
==========================================
+ Coverage 97.06% 97.08% +0.01%
==========================================
Files 13 13
Lines 784 788 +4
Branches 229 230 +1
==========================================
+ Hits 761 765 +4
Misses 23 23
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
这边最好看看 |
2c4b5c7
to
8741b8b
Compare
已改 |
@@ -345,6 +345,13 @@ export function generateTrigger( | |||
useLayoutEffect( | |||
(firstMount) => { | |||
if (!firstMount || mergedOpen) { | |||
if (stretch) { | |||
// delay setting makes it calculate | |||
setTimeout(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
避免 setTimeout
,另外还是没有 test case 👻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello,这个测试用例要用来测试这个bug是否出现吗,还是另外的作用呢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
测试是否修复 bug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这边有个时序在 CSSMotion 里已经做过了,加个 钉钉 群不~~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,怎么加?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
加这个群,然后我加你好友拉进 v5 群~
the value of inMotion stop the triggerAlign when first set width to popup, need set it to false
fix ant-design/ant-design#44249