NativeScript / NativeScript/plugins
Calendar Displays Twice when setting MinDate from JS
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 206
- フォーク
- 123
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 1
説明
I'm using the following code to set the MinDate, based on the date from another datetimepicker:-
<datetime:DatePickerField id="enddate" locale="en_GB" row="0" col="2" hint="Select End Date" class="date" isEnabled="false" datePickerClosed="setenddate" datePickerOpened="onEndDateTap"/>
export function onEndDateTap(args){ var startdate = args.object.page.getViewById("startdate"); var leavestart = new Date(startdate.text); DateTimePicker.pickDate({ minDate: leavestart }) }
Whether I use tap or datePickerOpened, the calendar is displaying twice, one on top of the other. The Custom version from code displays on top, with a non custom version below. I have to click a date on each for them to both close.
NS 8.0.2
@nativescript/datetimepicker 2.1.6
iOS and Android
https://user-images.githubusercontent.com/6585298/129018701-4e6a9cd5-0013-4132-97b7-2e4464ae9f9f.mp4
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
示されている onEndDateTap ハンドラーと DateTimePicker.pickDate({ minDate: leavestart }) を使用し、iOS と Android で @nativescript/datetimepicker 2.1.6 による問題を再現してください。MinDate を設定すると 2 つ目のカレンダーが開く理由を調査し、日付を選択すると重複した UI なしで 1 つのカレンダーが閉じることを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, ios, javascript, typescript
- 領域
- mobile
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100