 					})
 					dom.appendChild(clearButton)
 
-				$fly(clearButton).toggleClass("disabled", !@_value)
-		).on("click", (evt)=>
+				$fly(clearButton).toggleClass("disabled", !@_doms.input.value)
+		).on("click", () =>
 			if @_disabled then return;
 			if @_openOnActive
 				if @_opened

		container?.hide?(callback)
		return

	_closeDropdown:()->
		container = @_getContainer(true)
		container?.hide?()


		return $.xCreate(
			tagName: "input"
			type: "text"
			click: (evt) =>
				this.focus()
		)

	_isEditorDom: (node) ->
