@gisce/ooui 2.29.0-alpha.1 → 2.29.0

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": "@gisce/ooui",
3
- "version": "2.29.0-alpha.1",
3
+ "version": "2.29.0",
4
4
  "engines": {
5
5
  "node": "20.5.0"
6
6
  },
@@ -278,6 +278,15 @@ const evaluateAttributes = ({
278
278
  fallbackMode?: boolean;
279
279
  }) => {
280
280
  let finalTagAttributes = {};
281
+ let oldTagAttributes = {};
282
+ if (tagAttributes.attrs) {
283
+ oldTagAttributes = parseAttributes({
284
+ attrs: tagAttributes.attrs,
285
+ values,
286
+ fields,
287
+ widgetType,
288
+ });
289
+ }
281
290
 
282
291
  if (tagAttributes.json_attrs) {
283
292
  try {
@@ -289,23 +298,13 @@ const evaluateAttributes = ({
289
298
  });
290
299
  } catch (error) {
291
300
  if (fallbackMode && tagAttributes.attrs) {
292
- finalTagAttributes = parseAttributes({
293
- attrs: tagAttributes.attrs,
294
- values,
295
- fields,
296
- widgetType,
297
- });
301
+ finalTagAttributes = oldTagAttributes;
298
302
  } else {
299
303
  throw error;
300
304
  }
301
305
  }
302
306
  } else if (tagAttributes.attrs) {
303
- finalTagAttributes = parseAttributes({
304
- attrs: tagAttributes.attrs,
305
- values,
306
- fields,
307
- widgetType,
308
- });
307
+ finalTagAttributes = oldTagAttributes;
309
308
  }
310
309
 
311
310
  return {