Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom editor doesn't work out-of-the-box #1071

Open
jumble opened this issue Sep 9, 2020 · 2 comments
Open

Custom editor doesn't work out-of-the-box #1071

jumble opened this issue Sep 9, 2020 · 2 comments

Comments

@jumble
Copy link

jumble commented Sep 9, 2020

Browser version: Chrome 85.0.4183.83
r-c-e version: 0.42.0
Expected behavior: Can use all widgets specified in CustomEditor
Actual behavior: Layout -> Style pane displays the "Well, this is embarrassing" failure message.

Some errors are thrown:

Warning: Failed prop type: Invalid prop `activeOption` supplied to `RadioBlocks`.
    in RadioBlocks (created by UnconnectedRadio)
    in UnconnectedRadio (created by ContainerConnectedUnconnectedRadio)
    in ContainerConnectedUnconnectedRadio (at CustomEditor.js:52)
    (...)
Uncaught TypeError: value.match is not a function
    at UnconnectedTextEditor.hasTemplateStrings (TextEditor.js:82)
    at UnconnectedTextEditor.getAdjustedFullValue (TextEditor.js:112)
    at UnconnectedTextEditor.render (TextEditor.js:145)
    at finishClassComponent (react-dom.development.js:17160)
    (...)

...and

index.js:2177 The above error occurred in the <UnconnectedTextEditor> component:
    in UnconnectedTextEditor (created by ContainerConnectedUnconnectedTextEditor)
    in ContainerConnectedUnconnectedTextEditor (at CustomEditor.js:65)
    in div (created by PlotlySection)
    in PlotlySection (at CustomEditor.js:44)
    (...)

The value.match issue appears to be caused by trying to call match on a non-string- an object containing the following fields:

font: {family: ""Open Sans", verdana, arial, sans-serif", size: 17, color: "#444"}
pad: {t: 0, r: 0, b: 0, l: 0}
text: "Click to enter Plot title"
x: 0.5
xanchor: "auto"
xref: "container"
y: "auto"
yanchor: "auto"
yref: "container"

Trying to sort through the rest of this atm, but any help would be appreciated!

@LAKnoKAL
Copy link

Same for me, @jumble did you found any solution?

@jumble
Copy link
Author

jumble commented Mar 7, 2021

@LAKnoKAL unfortunately I didn't- not a blocker for me anymore, but hopefully it's resolved soon. Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants