FIX: correctly rename scroller everywhere (#26783)

This commit is contained in:
Joffrey JAFFEUX 2024-04-29 08:45:37 +02:00 committed by GitHub
parent 94fe31e5b3
commit c1c823144b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 5 deletions

View File

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

View File

@ -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",

View File

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

View File

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

View File

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