FIX: prevents click on select-box to close timeline-container on mobile

This commit is contained in:
Joffrey JAFFEUX 2017-09-13 10:00:10 +02:00 committed by GitHub
parent 26c6447161
commit 64c154d9df
4 changed files with 8 additions and 2 deletions

View File

@ -3,5 +3,5 @@ import SelectBoxHeaderComponent from "discourse/components/select-box/select-box
export default SelectBoxHeaderComponent.extend({
layoutName: "components/dropdown-select-box/dropdown-header",
classNames: ["dropdown-header"],
classNames: ["dropdown-header"]
});

View File

@ -49,6 +49,10 @@ export default Ember.Component.extend({
castInteger: false,
click(event) {
event.stopPropagation();
},
filterFunction: function(content) {
return (selectBox) => {
const filter = selectBox.get("filter").toLowerCase();

View File

@ -9,8 +9,9 @@ export default Ember.Component.extend({
this._setCaretIcon();
},
click() {
click(event) {
this.sendAction("onToggle");
event.stopPropagation();
},
_setCaretIcon() {

View File

@ -55,6 +55,7 @@
display: block;
font-size: 1em;
color: $primary;
padding: 0;
}
.desc {