stimulus-flatpickr
Advanced tools
Comparing version 1.2.0-2 to 1.2.0-3
@@ -218,3 +218,5 @@ 'use strict'; | ||
value: function disconnect() { | ||
const value = this.inputTarget.value; | ||
this.fp.destroy(); | ||
this.inputTarget.value = value; | ||
} | ||
@@ -330,3 +332,3 @@ }, { | ||
return JSON.parse(val); | ||
} catch { | ||
} catch (e) { | ||
return val; | ||
@@ -333,0 +335,0 @@ } |
@@ -214,3 +214,5 @@ import { Controller } from 'stimulus'; | ||
value: function disconnect() { | ||
const value = this.inputTarget.value; | ||
this.fp.destroy(); | ||
this.inputTarget.value = value; | ||
} | ||
@@ -326,3 +328,3 @@ }, { | ||
return JSON.parse(val); | ||
} catch { | ||
} catch (e) { | ||
return val; | ||
@@ -329,0 +331,0 @@ } |
@@ -219,3 +219,5 @@ (function (global, factory) { | ||
value: function disconnect() { | ||
const value = this.inputTarget.value; | ||
this.fp.destroy(); | ||
this.inputTarget.value = value; | ||
} | ||
@@ -331,3 +333,3 @@ }, { | ||
return JSON.parse(val); | ||
} catch { | ||
} catch (e) { | ||
return val; | ||
@@ -334,0 +336,0 @@ } |
{ | ||
"name": "stimulus-flatpickr", | ||
"version": "1.2.0-2", | ||
"version": "1.2.0-3", | ||
"description": "A Stimulus Wrapper for Flatpickr library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -29,3 +29,5 @@ import { Controller } from 'stimulus' | ||
disconnect() { | ||
const value = this.inputTarget.value | ||
this.fp.destroy() | ||
this.inputTarget.value = value | ||
} | ||
@@ -124,3 +126,3 @@ | ||
return JSON.parse(val) | ||
} catch { | ||
} catch (e) { | ||
return val | ||
@@ -127,0 +129,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
333757
51
2355