on 04-06-2021 7:42 PM
Hi all,
I am using the SAPUI5 networkgraph quite a lot and I am noticing buggy behavior which I believe has to do with the library itself.
The problem occurs when you simply use the networkgraph component and can be witnessed even in the samples released by SAP. See for example: https://sapui5.hana.ondemand.com/#/entity/sap.suite.ui.commons.networkgraph.Graph/sample/sap.suite.u...
The message is:
assert-dbg.js:34 Assertion failed: Attributes 'class' and 'style' must not be written, instead use dedicated 'class' or 'style' method
I believe this particular one is caused by sap.suite.ui.commons.networkgraph.Group (https://sapui5.hana.ondemand.com/1.86.3/resources/sap/suite/ui/commons/networkgraph/Group.js). If you deminify, and look in the method _render, you'll find a bit that goes:
this._renderHtmlElement("div", {}, {
id: i,
"data-sap-ui": i,
"class": this._getGroupClass(),
"style": s
}, o.renderManager);
As you can see, class and style are passed here in the object literal just like the id and data-sap-ui attributes, which I think is exactly what the assertion is complaining about.
I have added a screenshot from the chrome devtools that shows this as well.
The thing is, I have been trying to file this as a bug against SAPUI5 but I cannot seem to do this anywhere. I have an S user but the portal only lets me file an incident against a "system" and this simply has nothing todo with a system - this is just a standalone app I am developing. It will run for customers that have a SAP license of course that allows them to use SAPUI5.
There are actually a lot more issues with SAPUI5 as opposed to openui5 that I would like to address but there simply does not seem to be a good channel to communicate about this, or at least I am not finding it.
User | Count |
---|---|
68 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.