Strange behavior deleting a date in multiple inline Calendar

未关闭
#8,506 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
react
领域
frontend

调研方向

通过在不同月份选择日期,然后返回后删除其中一个日期,复现提供的多个内联 Calendar 案例。检查 Calendar 在月份导航和日期删除方面的行为;完成标准是删除一个已选日期时不会意外导航到最后一个月。

由索引模型根据 Issue 内容生成。

描述

Status: Needs Triage

react: 9.1.0
primereact: 10.9.7

Define a multiple inline Calendar
const [dates, setDates] = useState<Nullable<Date[]>>(null);
<Calendar
data-id={calendarid}
id={'calendarid'}
key={'calendarid'}
value={dates}
onChange={(e) => setDates(e.value)}
inline={true}
selectionMode="multiple"
className={""}
showTime={false}
showSeconds
disabled={false}
baseZIndex={10002}
/>

Select dates in different months. Go back to the previos month and delete a date: the calendar sets on the last month. See the video.
It is a strange behavior... Can you comment?

https://github.com/user-attachments/assets/c01debc4-6744-4921-8629-426c16442e2f

主要语言
CSS
星标
8.3k
派生
1.2k
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

primefaces/primereact 的其他 Issue

查看 primefaces/primereact 的全部 Issue

相似的 Issue

更多 Web Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。