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

React-Chart-Editor <TextEditor auto reseting to < br> after clicking outside and clicking in TextEditor again #1008

Open
as4ashish opened this issue Feb 3, 2020 · 0 comments

Comments

@as4ashish
Copy link

as4ashish commented Feb 3, 2020

So i am using react chart editor with plotly. In < TextEditor box when i type for title in graph it renders normally but when i click outside it grey-out (Became placeholder) and again click in title texteditor it became < br> automatically.
Everytime i click outside updateChartState action runs and made value inside texteditor a placeholder and next-time i click inside it automatically became < br>

I'm attaching code for TextEditor code
``

                <PlotlyFold name="Chart Title">
                    <TextEditor label="Title" attr="title.text" richTextOnly={true} />
                    <FontSelector attr="title.font.family" label="Typeface" />
                    <Numeric label='Font Size' attr="title.font.size" units="px" />
                    <ColorPicker label="Font Color" attr="title.font.color" />
                </PlotlyFold>
                <AxesFold name="Axis Titles">
                    <TextEditor attr="title.text" label="Label" richTextOnly={true} />
                    <FontSelector attr="title.font.family" label="Typeface"/>
                    <Numeric label='Font Size' attr="title.font.size" units="px" />
                    <ColorPicker label="Font Color" attr="title.font.color" />
                </AxesFold>
            </LayoutPanel>``

When i click in title textbox in renders normally
image

But When i click outside and click again it became "< br>' automatically

image

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

1 participant