-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Cannot Reproduce
-
Affects Version/s: 73.13.2
-
Fix Version/s: None
-
Component/s: Studio Designer
-
Tags:
-
Browser:
Steps to reproduce:
- Create a custom document type in Nuxeo Studio
- Access to View Designer
- Configure "create" view for a custom document
- The view is scaffolded as follows:
nuxeo-commercialresearch-create-layout.html
<!-- `nuxeo-commercialresearch-create-layout` @group Nuxeo UI @element nuxeo-commercialresearch-create-layout --> <dom-module id="nuxeo-commercialresearch-create-layout"> <template> <style> *[role=widget] { padding: 5px; } </style> <nuxeo-input role="widget" value="{{document.properties.dc:title}}" label="Title" type="text"></nuxeo-input> </template> <script> Polymer({ is: 'nuxeo-commercialresearch-create-layout', behaviors: [Nuxeo.LayoutBehavior], properties: { /** * @doctype CommercialResearch */ document: { type: Object, }, } }); </script> </dom-module>
NOTE: Title is a required field, but is not set a required
- Deploy your changes in your instances
- Create a new document of your custom document type, providing all the fiels marked as required
- Click on Create button
The document is not created and this error message appears in the browser console:
elements.html:122427 Uncaught TypeError: Cannot read property 'replace' of null at HTMLElement._sanitizeName (elements.html:122427) at HTMLElement._create (elements.html:122790) at HTMLElement.handler (elements.html:2624) at Object._fire (elements.html:7787) at Object.forward (elements.html:8185) at Object.click (elements.html:8148) at HTMLElement._handleNative (elements.html:7565)
- is related to
-
NXS-4759 Scaffold dc:title and dc:description with better default options and element
- Open