Function is not calling

In The following code the function name InlineEditing(…) is not calling

<div onChange={function(){InlineEditing({id:this.data.article._id, collection:'Articles', field:'title', content: $('#'+this.data.article._id+"-title").html()})}}>
some content here..........
</div>

this has to be bound to the context otherwise it will just use the this of the function which is not what you need.

Also that’s a pure React issue :slight_smile:

try:

const initializeInline = function() {
InlineEditing({
id:this.data.article._id, 
collection:'Articles', 
field:'title', 
content: $('#'+this.data.article._id+"-title").html()
})
}

<div onChange={this.initializeInline.bind(this)}>
some content here..........
</div>