@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/dist/helpers/attributeParser.d.ts.map +1 -1
- package/dist/ooui.es.js +96 -101
- package/dist/ooui.es.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/attributeParser.ts +11 -12
package/package.json
CHANGED
|
@@ -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 =
|
|
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 =
|
|
304
|
-
attrs: tagAttributes.attrs,
|
|
305
|
-
values,
|
|
306
|
-
fields,
|
|
307
|
-
widgetType,
|
|
308
|
-
});
|
|
307
|
+
finalTagAttributes = oldTagAttributes;
|
|
309
308
|
}
|
|
310
309
|
|
|
311
310
|
return {
|