Issue #1314💬 AnsweredOpened July 24, 2018by jvillena1 reactions

Traits values are not saved if I'm not typing on them

快速解答by jvillena1

Thanks @artf that solved my problem in a simple solution so then I don't run over all inputs to update only one. Great jobs!

Read full answer below ↓

Question

Hi @artf, I'm struggling with an issue when I'm trying to insert values in the Traits parameters. If I insert a new value without typing on it then the value is gone after the component is deselected. If you check the video attached maybe it's clearer.

http://recordit.co/m9Jgp2XGXr

I need to know if there is a way to update the model with the new value inserted on traits parameters.

Answers (3)

jvillenaJuly 29, 2018

Thanks @artf that solved my problem in a simple solution so then I don't run over all inputs to update only one.

Great jobs!

mcsekar12July 24, 2018

You are changing the title attribute of the element. so the value will not be updated. Can you post your trait creation code.

jvillenaJuly 25, 2018

Hi @mcsekar12, it happens with all the elements not only with the title. I'm not creating a traits, I only included when the component is selected a special button to allow user to include variables in the inputs. So I would like to know why the event is not triggering as when I'm typing on it.

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.