FIX: removes auto sizing and touchstart support for now

This commit is contained in:
Joffrey JAFFEUX 2017-11-23 15:34:52 +01:00 committed by GitHub
parent eaa54a5a64
commit 616a0dae4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 12 deletions

View File

@ -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();
},

View File

@ -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;