FIX: prevents click on select-box to close timeline-container on mobile
This commit is contained in:
parent
26c6447161
commit
64c154d9df
|
@ -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"]
|
||||
});
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -9,8 +9,9 @@ export default Ember.Component.extend({
|
|||
this._setCaretIcon();
|
||||
},
|
||||
|
||||
click() {
|
||||
click(event) {
|
||||
this.sendAction("onToggle");
|
||||
event.stopPropagation();
|
||||
},
|
||||
|
||||
_setCaretIcon() {
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
display: block;
|
||||
font-size: 1em;
|
||||
color: $primary;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.desc {
|
||||
|
|
Loading…
Reference in New Issue