jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.41k stars 713 forks source link

dynamic value added in input field is not avalible in export #841

Closed rupesh-terase closed 3 months ago

rupesh-terase commented 3 months ago

Hi, I Am using drawflow in jquery and have added nodes with input elements in it , when i update field value from $("#input").val() function value is empty for that df-bind element in export data but when i enter value manually with keyboard its available in export data for same input field I tried to add change(), input() keypress() trigger('input') etc. events still not working

Please help

rupesh-terase commented 3 months ago

resolved using this

newData = {'param_val':valSelected,'param_name':paramSelected}; editor.updateNodeDataFromId(selectedNodeId, newData);

but it should update value in bind with df-param_val by itself when we add value using .val() or value="xyz"