Skip to content
Commit 06900f98 authored by 汤绍坚's avatar 汤绍坚
Browse files

tsj : 解决问题:DateSelector组件在设计上存在一个缺陷。日期选择器整个区域都绑定了onClick事件,会将类型切换为"range"。在组件初始化后:

	首先,useEffect会触发一次notifyChange,使用默认的"month"类型
	然后,任何日期选择器区域的点击或自动聚焦都会触发handleTypeChange('range')
	这导致类型变为"range",并再次调用notifyChange
parent 293150f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment