PowerApps - Existing Date picker component - Current month date is not selectable
Issue faced in the existing app - "Date Picker v3.msapp" downloaded from other source:
- I've a screen where the date picker is displayed and lets assume that the current month is May. After opening the screen, I'm trying to pick a date, lets say May 3rd. When I click on 3rd, the date is not selected.
- But,
- I navigate to Previous month (by clicking < icon) and selected some date in that previous month and come back to current month then selected the date, now the 3rd May is selected. Or
- I navigate to Next month (by clicking > icon) and selected some date in that next month and come back to current month then selected the date, now the 3rd May is selected.
Date picker - UI
Code before fix:
- Code written in OnSelect property - when the Date is selected from the date picker, this code will be executed.
- The issue: "_firstDayInView" variable is not set initially.
Title_MonthDay_1 control - OnSelect
Code after fix:
If block is added before the existing code where set the "_firstDayInView" if it is blank.
Title_MonthDay_1 control - OnSelect
If you notice the Next / Previous icon - OnSelect property in the existing code, the same code "set the "_firstDayInView" if it is blank" is written.
Comments
Post a Comment