Enonic version: 7.8.2
macOS: 12.0.1
Content Studio: 4.0.2
Content Studio has a strange behavior that shifts focus to another field on the page when something is selected in a selector field. Sometimes we have large content types and this behavior gets in the way of the editors, that need to search again where they were.
Here’s a small example of this:
Ps: not sure if this fits into the bug category, but I put it here because it might confuse the editor
2 Likes
Alan
March 8, 2022, 9:50am
2
Is this Safari? Tested this now in latest Chrome and Safari, with content selector in mixins and x-data - nothing like that happened for me. Does it happen for all of your editors, several editors or just one? Does it happen with content selector in any content type or only in this specific content type?
Hi @Alan , thanks for the feedback.
This is happening in both browsers, Chrome and Safari, as you can see in my records below. And this is happening for many editors. We got this feedback at least for two different projects that are using this Enonic/ContentStudio version.
It seems that in some cases the content studio jumps the focus to another available field, but unfortunately, I do not understand the pattern that the app follows. If you check on my evidence, for the first ContentSelector field, it jumps the focus, but for the last one, this is not happening.
I’ve attached code for a content type structure I created just to record my screen and send you.
Chrome:
Safari:
Content-type:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<content-type>
<display-name>Test</display-name>
<display-name-expression>${title}</display-name-expression>
<super-type>base:structured</super-type>
<form>
<input type="TextLine" name="title">
<label>Title</label>
<occurrences minimum="1" maximum="1"/>
</input>
<input type="TextLine" name="shortTitle">
<label>Short Title</label>
<occurrences minimum="0" maximum="1"/>
</input>
<input type="TextLine" name="englishTitle">
<label>English Title</label>
<occurrences minimum="0" maximum="1"/>
</input>
<input type="HtmlArea" name="description">
<label>Description</label>
<occurrences minimum="0" maximum="1"/>
<config>
<include>Superscript Subscript</include>
</config>
</input>
<input type="TextLine" name="url">
<label>URL</label>
<occurrences minimum="0" maximum="1"/>
</input>
<input type="ContentSelector" name="internalLink">
<label>Internal Link</label>
<occurrences minimum="0" maximum="1"/>
<config>
<allowPath>${site}/*</allowPath>
<treeMode>false</treeMode>
</config>
</input>
<input type="HtmlArea" name="intro">
<label>Intro</label>
<occurrences minimum="0" maximum="1"/>
<config>
<include>Superscript Subscript</include>
</config>
</input>
<input type="HtmlArea" name="text">
<label>Text</label>
<occurrences minimum="0" maximum="1"/>
<config>
<include>Superscript Subscript</include>
</config>
</input>
<field-set>
<items>
<item-set name="navigation">
<occurrences minimum="0" maximum="0" />
<label>Meny</label>
<items>
<input name="main_navigation_text" type="TextLine">
<label>Tekst</label>
<occurrences minimum="0" maximum="1"/>
</input>
<input name="main_navigation_content" type="ContentSelector">
<label>Mål</label>
<occurrences minimum="0" maximum="1"/>
<config>
<allowContentType>base:folder</allowContentType>
<allowContentType>portal:site</allowContentType>
<treeMode>true</treeMode>
</config>
</input>
</items>
</item-set>
</items>
</field-set>
<input type="HtmlArea" name="footer">
<label>Footer</label>
<occurrences minimum="0" maximum="1"/>
<config>
<include>Superscript Subscript</include>
</config>
</input>
<input type="TextLine" name="alternative-headlines">
<label>Alternative Titles</label>
<occurrences minimum="0" maximum="0"/>
<help-text>Brukes for å angi alternativ(e) tittel/titler. Brukes i utlistninger for å gi flere innganger til samme innhold</help-text>
</input>
<input type="DateTime" name="first-published">
<label>First Published</label>
<occurrences minimum="0" maximum="1"/>
</input>
<input type="DateTime" name="last-professional-update">
<label>Last professional update</label>
<occurrences minimum="0" maximum="1"/>
</input>
<input type="Checkbox" name="showLinkPage">
<label>Show Page</label>
<default>unchecked</default>
<config>
<alignment>left</alignment>
</config>
</input>
<input type="ContentSelector" name="author">
<label>Author</label>
<occurrences minimum="0" maximum="0"/>
<config>
<allowPath>${site}/*</allowPath>
<treeMode>false</treeMode>
</config>
</input>
<input type="HtmlArea" name="description1">
<label>Description 1</label>
<occurrences minimum="0" maximum="1"/>
<config>
<include>Superscript Subscript</include>
</config>
</input>
<input type="HtmlArea" name="description2">
<label>Description 2</label>
<occurrences minimum="0" maximum="1"/>
<config>
<include>Superscript Subscript</include>
</config>
</input>
<input type="ContentSelector" name="relatedLinks">
<label>Related Links</label>
<occurrences minimum="0" maximum="0"/>
<config>
<allowPath>*</allowPath>
<treeMode>false</treeMode>
</config>
</input>
<input type="ComboBox" name="language">
<label>Language</label>
<occurrences minimum="1" maximum="1"/>
<config>
<option value="Norsk">Norsk</option>
<option value="English">English</option>
<option value="Svensk">Svensk</option>
<option value="Dansk">Dansk</option>
<option value="Annet">Annet</option>
</config>
<default>Norsk</default>
</input>
<input type="ContentSelector" name="subject-responsible">
<label>Subject responsible</label>
<occurrences minimum="0" maximum="0"/>
<help-text>Angir den som er ansvarlig for innholdet i FHI eller hos samarbeidspartner</help-text>
<config>
<relationshipType>system:reference</relationshipType>
<allowContentType>*</allowContentType>
</config>
</input>
<input type="ImageSelector" name="image">
<label>Image</label>
<occurrences minimum="0" maximum="1"/>
<help-text>Bilde som legger seg rett under introteksten, og brukes av noen parts på temasider</help-text>
<config>
<allowPath>${site}/*</allowPath>
<treeMode>true</treeMode>
</config>
</input>
<input type="TextLine" name="metaDescription">
<label>Meta Description</label>
<occurrences minimum="0" maximum="1"/>
</input>
</form>
</content-type>
1 Like
Alan
May 24, 2022, 10:05pm
5
Sorry - this got lost somehow. Reproduced with your schema, registered a bug here .
1 Like
Alan
May 27, 2022, 9:10am
6
Will be fixed in Content Studio 4.1.2 next week.
1 Like