mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: correctly rename scroller everywhere (#26783)
This commit is contained in:
parent
94fe31e5b3
commit
c1c823144b
@ -747,6 +747,7 @@ export default class ChatChannel extends Component {
|
|||||||
@channel={{@channel}}
|
@channel={{@channel}}
|
||||||
@uploadDropZone={{this.uploadDropZone}}
|
@uploadDropZone={{this.uploadDropZone}}
|
||||||
@onSendMessage={{this.onSendMessage}}
|
@onSendMessage={{this.onSendMessage}}
|
||||||
|
@scroller={{this.scroller}}
|
||||||
/>
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -145,7 +145,7 @@ export default class ChatComposer extends Component {
|
|||||||
|
|
||||||
@action
|
@action
|
||||||
setup() {
|
setup() {
|
||||||
this.composer.scrollable = this.args.scrollable;
|
this.composer.scroller = this.args.scroller;
|
||||||
this.appEvents.on("chat:modify-selection", this, "modifySelection");
|
this.appEvents.on("chat:modify-selection", this, "modifySelection");
|
||||||
this.appEvents.on(
|
this.appEvents.on(
|
||||||
"chat:open-insert-link-modal",
|
"chat:open-insert-link-modal",
|
||||||
|
@ -578,6 +578,7 @@ export default class ChatThread extends Component {
|
|||||||
@thread={{@thread}}
|
@thread={{@thread}}
|
||||||
@onSendMessage={{this.onSendMessage}}
|
@onSendMessage={{this.onSendMessage}}
|
||||||
@uploadDropZone={{this.uploadDropZone}}
|
@uploadDropZone={{this.uploadDropZone}}
|
||||||
|
@scroller={{this.scroller}}
|
||||||
/>
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ export default class ChatChannelComposer extends Service {
|
|||||||
@service site;
|
@service site;
|
||||||
|
|
||||||
@tracked textarea;
|
@tracked textarea;
|
||||||
@tracked scrollable;
|
@tracked scroller;
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
super.init(...arguments);
|
super.init(...arguments);
|
||||||
@ -34,7 +34,7 @@ export default class ChatChannelComposer extends Service {
|
|||||||
|
|
||||||
schedule("afterRender", () => {
|
schedule("afterRender", () => {
|
||||||
if (this.capabilities.isIOS && !this.capabilities.isIpadOS) {
|
if (this.capabilities.isIOS && !this.capabilities.isIpadOS) {
|
||||||
disableBodyScroll(this.scrollable, { reverse: true });
|
disableBodyScroll(this.scroller, { reverse: true });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ export default class ChatThreadComposer extends Service {
|
|||||||
@service site;
|
@service site;
|
||||||
|
|
||||||
@tracked textarea;
|
@tracked textarea;
|
||||||
@tracked scrollable;
|
@tracked scroller;
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
super.init(...arguments);
|
super.init(...arguments);
|
||||||
@ -29,7 +29,7 @@ export default class ChatThreadComposer extends Service {
|
|||||||
|
|
||||||
schedule("afterRender", () => {
|
schedule("afterRender", () => {
|
||||||
if (this.capabilities.isIOS && !this.capabilities.isIpadOS) {
|
if (this.capabilities.isIOS && !this.capabilities.isIpadOS) {
|
||||||
disableBodyScroll(this.scrollable, { reverse: true });
|
disableBodyScroll(this.scroller, { reverse: true });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user