mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 18:02:46 +08:00
FIX: removes auto sizing and touchstart support for now
This commit is contained in:
parent
eaa54a5a64
commit
616a0dae4e
|
@ -44,16 +44,8 @@ export default Ember.Mixin.create({
|
|||
this._positionWrapper();
|
||||
},
|
||||
|
||||
@on("didInsertElement")
|
||||
_setupResizeListener() {
|
||||
if (!(this.site && this.site.isMobileDevice)) {
|
||||
$(window).on("resize.select-kit", () => this.collapse() );
|
||||
}
|
||||
},
|
||||
|
||||
@on("willDestroyElement")
|
||||
_clearState() {
|
||||
$(window).off("resize.select-kit");
|
||||
$(`.select-kit-fixed-placeholder-${this.elementId}`).remove();
|
||||
},
|
||||
|
||||
|
|
|
@ -15,9 +15,7 @@ export default Ember.Mixin.create({
|
|||
willDestroyElement() {
|
||||
this._super();
|
||||
|
||||
$(document)
|
||||
.off("mousedown.select-kit")
|
||||
.off("touchstart.select-kit");
|
||||
$(document).off("mousedown.select-kit");
|
||||
|
||||
if (this.$header()) {
|
||||
this.$header()
|
||||
|
@ -39,7 +37,7 @@ export default Ember.Mixin.create({
|
|||
this._super();
|
||||
|
||||
$(document)
|
||||
.on("mousedown.select-kit, touchstart.select-kit", event => {
|
||||
.on("mousedown.select-kit", event => {
|
||||
if (Ember.isNone(this.get("element"))) return;
|
||||
if (this.get("element").contains(event.target)) return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user