@panoramax/web-viewer 4.0.3-develop-0b852670 → 4.0.3-develop-5497573e

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": "@panoramax/web-viewer",
3
- "version": "4.0.3-develop-0b852670",
3
+ "version": "4.0.3-develop-5497573e",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
@@ -97,6 +97,8 @@ export default class SemanticsEditor extends LitElement {
97
97
 
98
98
  /** @private */
99
99
  _onBlur(e) {
100
+ const prevValidity = e.target.checkValidity();
101
+
100
102
  if(this._valid) {
101
103
  e.target.setCustomValidity("");
102
104
 
@@ -117,11 +119,10 @@ export default class SemanticsEditor extends LitElement {
117
119
  }
118
120
  }));
119
121
  }
120
- else {
122
+ else if(prevValidity) { // Do not call again if already shows up, to fix Chrome issue
121
123
  e.target.setCustomValidity(this._t?.pnx.semantics_editor_error || "Invalid syntax");
124
+ e.target.reportValidity();
122
125
  }
123
-
124
- e.target.reportValidity();
125
126
  }
126
127
 
127
128
  /** @private */