videomail-client 8.3.21 → 8.3.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": "videomail-client",
3
- "version": "8.3.21",
3
+ "version": "8.3.22",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "author": "Michael Heuberger <michael.heuberger@binarykitchen.com>",
6
6
  "contributors": [
@@ -17273,7 +17273,7 @@ function wrappy (fn, cb) {
17273
17273
  },{}],114:[function(_dereq_,module,exports){
17274
17274
  module.exports={
17275
17275
  "name": "videomail-client",
17276
- "version": "8.3.21",
17276
+ "version": "8.3.22",
17277
17277
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
17278
17278
  "author": "Michael Heuberger <michael.heuberger@binarykitchen.com>",
17279
17279
  "contributors": [
@@ -20568,6 +20568,10 @@ var Form = function Form(container, formElement, options) {
20568
20568
  name = input.name;
20569
20569
  if (videomail[name]) {
20570
20570
  input.value = videomail[name];
20571
+ // Important so that any other JS framework can detect changes
20572
+ input.dispatchEvent(new Event("change", {
20573
+ bubbles: true
20574
+ }));
20571
20575
  }
20572
20576
  if (name === options.selectors.subjectInputName || name === options.selectors.bodyInputName) {
20573
20577
  input.disabled = true;
@@ -20651,16 +20655,22 @@ var Form = function Form(container, formElement, options) {
20651
20655
  self.emit(_events.default.ERROR, _videomailError.default.create("Videomail key for preview is missing!", options));
20652
20656
  } else if (videomailKey) {
20653
20657
  keyInput.value = videomailKey;
20658
+ // Important so that any other JS framework can detect changes
20659
+ keyInput.dispatchEvent(new Event("change", {
20660
+ bubbles: true
20661
+ }));
20654
20662
  }
20655
20663
  /*
20656
- * else
20657
- * leave as it and use existing keyInput.value
20664
+ * else leave as it and use existing keyInput.value
20658
20665
  */
20659
20666
  });
20660
20667
 
20661
20668
  // fixes https://github.com/binarykitchen/videomail-client/issues/91
20662
20669
  this.on(_events.default.GOING_BACK, function () {
20663
20670
  keyInput.value = null;
20671
+ keyInput.dispatchEvent(new Event("change", {
20672
+ bubbles: true
20673
+ }));
20664
20674
  });
20665
20675
  this.on(_events.default.INVALID, function () {
20666
20676
  formElement.classList.add("invalid");