Added closeOnSelect attribute
merge from upstream/master
Merge pull request #362 from TravisTX/feat-closeOnSelect

Added closeOnSelect attribute