Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-30485

Console error when typing # in anchor name field

    Details

      Description

      Console error when typing # in anchor name field

      Steps:

      1. Create new content which contains RichText field, e.g. Folder.
      2. Type some text
      3. Click anchor icon
      4. Type # in name field

      Error occurs in console:

       Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Element': '##' is not a valid selector.
          at eval (webpack:///./vendor/ezsystems/ezplatform-admin-ui/src/bundle/Resources/public/js/alloyeditor/src/buttons/ez-btn-anchoredit.js?:136:54)
          at Array.every (<anonymous>)
          at EzBtnAnchorEdit.isValueUnique (webpack:///./vendor/ezsystems/ezplatform-admin-ui/src/bundle/Resources/public/js/alloyeditor/src/buttons/ez-btn-anchoredit.js?:132:48)
          at EzBtnAnchorEdit.updateValue (webpack:///./vendor/ezsystems/ezplatform-admin-ui/src/bundle/Resources/public/js/alloyeditor/src/buttons/ez-btn-anchoredit.js?:120:32)
          at Object.sh (http://2.5.0.ubn/bundles/ezplatformadminuiassets/vendors/react-dom/umd/react-dom.production.min.js:164:410)
          at rh (http://2.5.0.ubn/bundles/ezplatformadminuiassets/vendors/react-dom/umd/react-dom.production.min.js:13:429)
          at uh (http://2.5.0.ubn/bundles/ezplatformadminuiassets/vendors/react-dom/umd/react-dom.production.min.js:13:483)
          at Ge (http://2.5.0.ubn/bundles/ezplatformadminuiassets/vendors/react-dom/umd/react-dom.production.min.js:15:158)
          at vh (http://2.5.0.ubn/bundles/ezplatformadminuiassets/vendors/react-dom/umd/react-dom.production.min.js:165:250)
          at Array.forEach (<anonymous>) 

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Katarzyna Zawada
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: