From 0f330bf4a07a1e246ebda3e62ee32108606376eb Mon Sep 17 00:00:00 2001 From: Snow Date: Mon, 12 Aug 2019 12:53:02 +1000 Subject: [PATCH] feat: if the date picker is cleared then the value should be nulled --- addon/components/md-input-date.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addon/components/md-input-date.js b/addon/components/md-input-date.js index db4062ad..bb6570a6 100644 --- a/addon/components/md-input-date.js +++ b/addon/components/md-input-date.js @@ -47,6 +47,8 @@ export default MaterializeInput.extend({ this._onDateSet = evt => { if (evt.select) { this.set('value', formatDate(evt.select)); + } else { + this.set('value', null); } };