Restore on Backspace

new TomSelect('#input-tags6',{
	plugins: ['restore_on_backspace'],
	persist: false,
	create: true
});
<input type="text" id="input-tags6" value="awesome,neat" autocomplete="off">

Plugin Configuration

Setting Description
html

A function taking option data as an argument and returning a text string that will be assigned to the control input value

Type: callback Default:
function(option){
		return option[self.settings.labelField];
}

Available Plugins