toggle-components-library 1.25.21 → 1.25.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toggle-components-library",
3
- "version": "1.25.21",
3
+ "version": "1.25.22",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
package/src/.DS_Store ADDED
Binary file
@@ -144,6 +144,7 @@ export default {
144
144
  },
145
145
  set: function(modifiedValue) {
146
146
  if(modifiedValue.start) {
147
+
147
148
  //if modifiedValue.start is present, set selectedDateToEmit.start to it. If there is already an end date stored,
148
149
  // set selectedDateToEmit.end to it, otherwise use the start date.
149
150
  let isoDate = new Date(new Date(modifiedValue.start+' 00:00:00').toISOString())
@@ -166,9 +167,9 @@ export default {
166
167
 
167
168
  methods: {
168
169
 
169
- clearDate()
170
- {
171
- this.displayValue = {start:'',end:''};
170
+ clearDate() {
171
+ let blankDate = {start: '', end: ''};
172
+ this.$emit('input', blankDate);
172
173
  },
173
174
 
174
175
  toggleDatePickerState(state,emit){