Git Product home page Git Product logo

react-query-builder's People

Contributors

mattcontinisio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

rcastro83 sabahk

react-query-builder's Issues

License?

What is the license for this repo?

facing issue in IE while updating set for one array item

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);

}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.