NativeScript / NativeScript/plugins
[@nativescript/datetimepicker] DateTimePicker resets date if set first after setting time
未关闭
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 206
- 派生
- 123
- 平均合并
- 2 天 1 小时
- 30 天内合并 PR
- 1
描述
I'm using the DateTimePicker component in my application and found a potential bug.
- Setting time field first, it auto sets the date field on the current date. Updating the date field works.
- Setting date field first, it sets the date field and leaves time blank. Setting the time field now, RESETS date field to current day.
There is a property called autoPickTime which defaults to false. I guess thats the reason why setting date does not set the time.
It would be nice to have similar property autoPickDate to prevent overwritting the date or at least check for a set date.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 @nativescript/datetimepicker 组件开始,复现 issue 中描述的两种字段设置顺序。检查现有的 autoPickTime 行为,并验证先设置日期再设置时间时,不会再将选定日期替换为当天日期;应通过适当的回归测试覆盖此行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, typescript
- 领域
- mobile
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100