Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18106

JavaScript strict mode-only exception on procolor.js

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce in XWiki 12.7 or greater:
      1. Add the following code in a wiki page and save the page:

      {{velocity}}
       {{html}}
       #set ($discard = $xwiki.jsfx.use('uicomponents/widgets/colorpicker/procolor.js', true))
       <input class="procolor" name="color" type="text" />
       {{/html}}
       {{/velocity }}

      2. In view mode, try to pick a color.
      Expected result: color picker is displayed and a color can be picked

      Actual result: "Uncaught ReferenceError: assignment to undeclared variable source" error occurs in procolor.js, see the browser console.

       

       

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              acotiuga Alex Cotiugă
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: