ExtJS store sync send empty string instead of null

477 views Asked by At

I have a store with model, and this model have fields like below:

{
    name: "name",
    type: "string",
    allowNull: false,
    defaultValue: null
}

Problem is: When I update textfield with name on empty string, I send "" instead of null

textfield have allowNull: true

How to send null?

1

There are 1 answers

1
Snehal Dangroshiya On

{name: "name", type: "string", allowNull: false, defaultValue: null}

I think allowNull should be true