@gisce/ooui 2.27.1 → 2.28.0-alpha.1
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 +101 -96
- package/dist/ooui.es.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/attributeParser.ts +12 -11
package/package.json
CHANGED
|
@@ -278,15 +278,6 @@ 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
|
-
}
|
|
290
281
|
|
|
291
282
|
if (tagAttributes.json_attrs) {
|
|
292
283
|
try {
|
|
@@ -298,13 +289,23 @@ const evaluateAttributes = ({
|
|
|
298
289
|
});
|
|
299
290
|
} catch (error) {
|
|
300
291
|
if (fallbackMode && tagAttributes.attrs) {
|
|
301
|
-
finalTagAttributes =
|
|
292
|
+
finalTagAttributes = parseAttributes({
|
|
293
|
+
attrs: tagAttributes.attrs,
|
|
294
|
+
values,
|
|
295
|
+
fields,
|
|
296
|
+
widgetType,
|
|
297
|
+
});
|
|
302
298
|
} else {
|
|
303
299
|
throw error;
|
|
304
300
|
}
|
|
305
301
|
}
|
|
306
302
|
} else if (tagAttributes.attrs) {
|
|
307
|
-
finalTagAttributes =
|
|
303
|
+
finalTagAttributes = parseAttributes({
|
|
304
|
+
attrs: tagAttributes.attrs,
|
|
305
|
+
values,
|
|
306
|
+
fields,
|
|
307
|
+
widgetType,
|
|
308
|
+
});
|
|
308
309
|
}
|
|
309
310
|
|
|
310
311
|
return {
|