Autocomplete select box supports optgroups and removing of selected opti...

...ons
Replace all method by one-liner
@selectedRows? and @selectedRows[row['data'].toString()]?