EasyUI Forum

General Category => Bug Report => Topic started by: happyraing on May 05, 2020, 12:19:41 AM



Title: form.js load null value
Post by: happyraing on May 05, 2020, 12:19:41 AM
the database fileds value is null

then call  form('load', row);

when row.comboboxval=null

combobox will throw an error : Cannot read property 'split' of null

the combobox multiple=true


Title: Re: form.js load null value
Post by: jarry on May 06, 2020, 11:46:37 PM
A multiple combobox requires an array as its field value. Use this code to avoid this issue.
Code:
row.comboboxval = row.comboboxval || [];
$(...).form('load', row);