From 926d49744b0c9d4a6713878d1b9ab50631555d72 Mon Sep 17 00:00:00 2001 From: Duncan Smart Date: Fri, 30 Aug 2013 21:16:02 +0100 Subject: [PATCH] Updated docs for `select2-clearing` event. --- select2-latest.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/select2-latest.html b/select2-latest.html index 261cbaa0..0ea5bcc9 100644 --- a/select2-latest.html +++ b/select2-latest.html @@ -1708,6 +1708,15 @@ $("#select").select2({

+
+
+

select2-clearing

+

Fired when a choice is being cleared in the dropdown, but before any modification has been made to the selection. + This event is used to allow the user to reject the clear by calling event.preventDefault()

+

+

For the clear button to be visible the allowClear option needs to be true.

+
+

select2-removed