Add box-sizing
to another area
This closes https://github.com/select2/select2/issues/3029.
This commit is contained in:
parent
72e5c2a50d
commit
ef5c88a6f6
1
dist/css/select2.css
vendored
1
dist/css/select2.css
vendored
@ -160,6 +160,7 @@
|
|||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
cursor: text; }
|
cursor: text; }
|
||||||
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
|
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
|
||||||
|
box-sizing: border-box;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
|
2
dist/css/select2.min.css
vendored
2
dist/css/select2.min.css
vendored
File diff suppressed because one or more lines are too long
5
dist/js/select2.amd.full.js
vendored
5
dist/js/select2.amd.full.js
vendored
@ -4323,6 +4323,8 @@ define('select2/core',[
|
|||||||
attributes: true,
|
attributes: true,
|
||||||
subtree: false
|
subtree: false
|
||||||
});
|
});
|
||||||
|
} else if (this.$element[0].addEventListener) {
|
||||||
|
this.$element[0].addEventListener('DOMAttrModified', self._sync, false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -4585,6 +4587,9 @@ define('select2/core',[
|
|||||||
if (this._observer != null) {
|
if (this._observer != null) {
|
||||||
this._observer.disconnect();
|
this._observer.disconnect();
|
||||||
this._observer = null;
|
this._observer = null;
|
||||||
|
} else if (this.$element[0].removeEventListener) {
|
||||||
|
this.$element[0]
|
||||||
|
.removeEventListener('DOMAttrModified', this._sync, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._sync = null;
|
this._sync = null;
|
||||||
|
5
dist/js/select2.amd.js
vendored
5
dist/js/select2.amd.js
vendored
@ -4323,6 +4323,8 @@ define('select2/core',[
|
|||||||
attributes: true,
|
attributes: true,
|
||||||
subtree: false
|
subtree: false
|
||||||
});
|
});
|
||||||
|
} else if (this.$element[0].addEventListener) {
|
||||||
|
this.$element[0].addEventListener('DOMAttrModified', self._sync, false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -4585,6 +4587,9 @@ define('select2/core',[
|
|||||||
if (this._observer != null) {
|
if (this._observer != null) {
|
||||||
this._observer.disconnect();
|
this._observer.disconnect();
|
||||||
this._observer = null;
|
this._observer = null;
|
||||||
|
} else if (this.$element[0].removeEventListener) {
|
||||||
|
this.$element[0]
|
||||||
|
.removeEventListener('DOMAttrModified', this._sync, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._sync = null;
|
this._sync = null;
|
||||||
|
5
dist/js/select2.full.js
vendored
5
dist/js/select2.full.js
vendored
@ -4762,6 +4762,8 @@ define('select2/core',[
|
|||||||
attributes: true,
|
attributes: true,
|
||||||
subtree: false
|
subtree: false
|
||||||
});
|
});
|
||||||
|
} else if (this.$element[0].addEventListener) {
|
||||||
|
this.$element[0].addEventListener('DOMAttrModified', self._sync, false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -5024,6 +5026,9 @@ define('select2/core',[
|
|||||||
if (this._observer != null) {
|
if (this._observer != null) {
|
||||||
this._observer.disconnect();
|
this._observer.disconnect();
|
||||||
this._observer = null;
|
this._observer = null;
|
||||||
|
} else if (this.$element[0].removeEventListener) {
|
||||||
|
this.$element[0]
|
||||||
|
.removeEventListener('DOMAttrModified', this._sync, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._sync = null;
|
this._sync = null;
|
||||||
|
2
dist/js/select2.full.min.js
vendored
2
dist/js/select2.full.min.js
vendored
File diff suppressed because one or more lines are too long
5
dist/js/select2.js
vendored
5
dist/js/select2.js
vendored
@ -4762,6 +4762,8 @@ define('select2/core',[
|
|||||||
attributes: true,
|
attributes: true,
|
||||||
subtree: false
|
subtree: false
|
||||||
});
|
});
|
||||||
|
} else if (this.$element[0].addEventListener) {
|
||||||
|
this.$element[0].addEventListener('DOMAttrModified', self._sync, false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -5024,6 +5026,9 @@ define('select2/core',[
|
|||||||
if (this._observer != null) {
|
if (this._observer != null) {
|
||||||
this._observer.disconnect();
|
this._observer.disconnect();
|
||||||
this._observer = null;
|
this._observer = null;
|
||||||
|
} else if (this.$element[0].removeEventListener) {
|
||||||
|
this.$element[0]
|
||||||
|
.removeEventListener('DOMAttrModified', this._sync, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._sync = null;
|
this._sync = null;
|
||||||
|
2
dist/js/select2.min.js
vendored
2
dist/js/select2.min.js
vendored
File diff suppressed because one or more lines are too long
@ -5,6 +5,7 @@
|
|||||||
cursor: text;
|
cursor: text;
|
||||||
|
|
||||||
.select2-selection__rendered {
|
.select2-selection__rendered {
|
||||||
|
box-sizing: border-box;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
|
Loading…
Reference in New Issue
Block a user