This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d188dfde-3236-4b59-848d-717b914d20a7 XWIKI-22524 Open

In object mode JS is not loaded for a new instance of an existing object

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-7670224f-6276-4aca-8af6-5081b09a2f4d Florean Oana-Lavinia created this issue on 23/Sep/24 10:30
 
Summary: In object mode JS is not loaded for a new instance of an existing object
Issue Type: cid:jira-generated-image-avatar-d188dfde-3236-4b59-848d-717b914d20a7 Bug
Affects Versions: 13.10.7, 16.8.0-rc-1
Assignee: Unassigned
Components: Web - Templates & Resources
Created: 23/Sep/24 10:29
Priority: cid:jira-generated-image-static-major-8457c75b-7bdc-417e-9620-43c0218fa4bc Major
Reporter: Florean Oana-Lavinia
Description:

I'll use the List of users class property for exemplifying the problem.

Steps to reproduce:
1. Have a class, e.g. TestClass, that has a List of users property
2. Create a page that has an object of this type
3. Save the page and exit edit mode
4. Edit the page again in object mode
5. Add a new TestClass object
6. Try to add a user in the List of users property

Expected result:
A drop down with users is displayed

Actual result:
No drop down is displayed and you cannot edit the field

If you inspect the field you can see that the selectize.js code is missing for the select input
Workaround: open the already existing object, which will load the JS needed and will make the drop down work

In the uploaded video it can be seen that there are JS loading issues for other fields as well

 
 

2 updates

 
cid:jira-generated-image-avatar-7670224f-6276-4aca-8af6-5081b09a2f4d Changes by Florean Oana-Lavinia on 23/Sep/24 10:32
 
Description: I'll use the List of users class property for exemplifying the problem.

*Steps to reproduce:*
1. Have a class, e.g. TestClass, that has a _List of users_ property
2. Create a page that has an object of this type
3. Save the page and exit edit mode
4. Edit the page again in object mode
5. Add a new TestClass object
6. Try to add a user in the _List of users_ property

*Expected result:*
A drop down with users is displayed

*Actual result:*
No drop down is displayed and you cannot edit the field

If you inspect the field you can see that the selectize.js code is missing for the select input
Workaround: open the already existing object, which will load the JS needed and will make the drop down work

In the uploaded video it can be seen that there are JS loading issues for other fields as well
. I used the Movies Application as an example
Attachment: newObject.gif