Skip to content

Commit 9967d06

Browse files
committed
fix(datepicker): 修复日期选择器面板显示问题
1 parent 569cd7d commit 9967d06

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/components/datepicker/common/picker.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,15 @@ class Picker extends Component {
285285

286286
if (disabled) return;
287287

288-
// 如果不可见则显示面板
288+
// 修复:无论面板是否可见,都重新激活它以确保正确显示
289289
if (!visible) {
290290
this.changeVisible(true);
291+
} else {
292+
// 先关闭再打开,确保面板能正确响应
293+
this.changeVisible(false);
294+
setTimeout(() => {
295+
this.changeVisible(true);
296+
}, 10);
291297
}
292298
};
293299

0 commit comments

Comments
 (0)