Issue #1491💬 AnsweredOpened October 9, 2018by shlomoko0 reactions

Using slider in composite styling

快速解答by artf

Open the issue in the correct repository and indicate steps to reproduce it, when trying to change value of slider what does it mean?!?

Read full answer below ↓

Question

When adding a slider to a composite type property I am getting the following error (when trying to change value of slider):

InputNumber.js?d43d:244 Uncaught SyntaxError: Invalid regular expression: /^initial|inherit/: Stack overflow at child.validateInputValue (InputNumber.js?d43d:244) at child.parseValue (PropertyInteger.js?83a3:40) at child.valueOnIndex (PropertyCompositeView.js?8ca1:122) at customValue (PropertyCompositeView.js?8ca1:88) at child.getTargetValue (PropertyView.js?aa5b:274) at child.targetUpdated (PropertyView.js?aa5b:194) at executeBound (underscore.js?17fb:762) at child.eval (underscore.js?17fb:775) at child.eval (underscore.js?17fb:122) at triggerEvents (backbone.js?ab5c:369)

The line in the code that it fails on:

        // If the value is one of the fixed values I leave it as it is
        var regFixed = new RegExp('^' + fixed.join('|'), 'g');
        if (fixed.length && regFixed.test(val)) {

Is there a solution for this?

Answers (2)

artfOctober 11, 2018

Open the issue in the correct repository and indicate steps to reproduce it, when trying to change value of slider what does it mean?!?

lock[bot]October 11, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.