Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Fix datepicker input clear (#1729) #1730

Merged
merged 2 commits into from
Jun 11, 2018

Conversation

blackbaud-conorwright
Copy link
Contributor

@blackbaud-conorwright blackbaud-conorwright commented Jun 8, 2018

added datepicker support for undefined values

Resolves: #1719 and #1419

* Resolving Card action bar still visable after hiding with *ngIf #1421

* Addressed PR style comments

* updated demo with clear button

* added datepicker support for undefined values
@blackbaud-conorwright blackbaud-conorwright changed the title Datepicker input clear fix (#1729) Fix datepicker input clear (#1729) Jun 8, 2018
@codecov-io
Copy link

codecov-io commented Jun 8, 2018

Codecov Report

Merging #1730 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1730   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         409      409           
  Lines        8474     8477    +3     
  Branches     1240     1241    +1     
=======================================
+ Hits         8473     8476    +3     
  Misses          1        1
Impacted Files Coverage Δ
...c/modules/datepicker/datepicker-input.directive.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e333e82...43c6112. Read the comment docs.

</div>

<p>
<button class='sky-btn sky-btn-secondary' (click)="clearSelectedDate()">Clear</button>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double quotes for HTML attribute values. Also, change the button text to "Clear selected date" to be more descriptive.

@@ -8,4 +8,8 @@ export class SkyDatepickerDemoComponent {
public minDate: Date;
public maxDate: Date;
public selectedDate: Date;

public clearSelectedDate() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a return type of void.

@Blackbaud-SteveBrush Blackbaud-SteveBrush self-assigned this Jun 11, 2018
@Blackbaud-SteveBrush Blackbaud-SteveBrush merged commit 380bdae into master Jun 11, 2018
@Blackbaud-SteveBrush Blackbaud-SteveBrush deleted the fix-datepicker-input-clear branch June 11, 2018 19:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants