sl-ember-components icon indicating copy to clipboard operation
sl-ember-components copied to clipboard

sl-date-range-picker: "endDateValue" should not be able to be set that exceeds "maxDate"

Open juwara0 opened this issue 9 years ago • 2 comments

Provide a fix for "endDateValue" being able to be set that exceeds "maxDate" and then verify the fix byt turning the skipped test below back on.

This test fails:

test( '"endDateValue" cannot be more than "maxDate"', function( assert ) {

this.render( hbs`
    {{sl-date-range-picker
        maxDate="09/25/2015"
        endDateValue="09/28/2015"
    }}
` );

assert.strictEqual(
    this.$( '>:first-child' ).find( '.sl-daterange-end-date' ).find( 'input' ).val(),
    '09/25/2015',
    'The "endDateValue" is not more than the "maxDate"'
);

});

juwara0 avatar Sep 25 '15 19:09 juwara0

I'm working on this. addressed by #870 (will cause merge conflicts otherwise)

Yogeswar avatar Nov 10 '15 20:11 Yogeswar

Should be resolved by #1458

SpikedKira avatar Feb 05 '16 17:02 SpikedKira