mattcontinisio / react-query-builder Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://mattcontinisio.github.io/react-query-builder/
Home Page: http://mattcontinisio.github.io/react-query-builder/
What is the license for this repo?
In my senerio, I have 3 left operants with prepopulated values with respective operant and right operant values as below
[{"ctype":"Condition","coperator":1,"leftOperandId":10,"leftOperandText":"criteria1","rightOperandId":["prepoulated -1"],"rightOperandText":["prepoulated -1"]},{"ctype":"Condition","coperator":2,"leftOperandId":12,"leftOperandText":"criteria2","rightOperandId":["prepoulated -2"],"rightOperandText":["prepoulated -2"]},{"ctype":"Condition","coperator":3,"leftOperandId":13,"leftOperandText":"criteria3","rightOperandId":["prepoulated -3"],"rightOperandText":["prepoulated -3"]}]
Now I am trying to update 1st right operant value to something as "abc"
then as soon as I try to enter one keyword 2nd right operant value 1st right operant values start changes as "ab" as soon as I enter another keyword 1st right operant again will update as "abc"
I have not found any console errors and in Chrome same code is working
I have used standard code structure as given in the example code as follows
codition.js
handleChange = (obj) => {
this.props.query.set(obj);
}
I have created individual components for right operands and on change, I am calling following function
handleChangeEventExtn = (event) => {
let obj = {};
let eventObj = {
name: '', value: []
};
let _value = [];
if (event.target.value !== '') {
_value = event.target.value.split(',');
}
eventObj.name = event.target.name;
eventObj.value = _value;
obj[eventObj.name] = eventObj.value;
eventObj.name = 'rightOperandText';
eventObj.value = _value;
obj[eventObj.name] = eventObj.value;
this.props.handleChangeEvent(obj);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.