scroll to bottom of chat window, always
This commit is contained in:
parent
ab51a2b827
commit
42b5fc0f87
2 changed files with 14 additions and 2 deletions
|
|
@ -1495,7 +1495,7 @@ class extends Component
|
|||
}
|
||||
})
|
||||
|
||||
frappe.chat.message.on.create((r) =>
|
||||
frappe.chat.message.on.create((r) =>
|
||||
{
|
||||
const { state } = this
|
||||
|
||||
|
|
@ -2395,6 +2395,18 @@ class extends Component
|
|||
frappe.Chat.Widget.ChatList
|
||||
=
|
||||
class extends Component {
|
||||
on_mounted ( )
|
||||
{
|
||||
const $element = $('.frappe-chat').find('.chat-list')
|
||||
$element.scrollTop($element[0].scrollHeight)
|
||||
}
|
||||
|
||||
on_updated ( )
|
||||
{
|
||||
const $element = $('.frappe-chat').find('.chat-list')
|
||||
$element.scrollTop($element[0].scrollHeight)
|
||||
}
|
||||
|
||||
render ( ) {
|
||||
const { props } = this
|
||||
|
||||
|
|
|
|||
2
frappe/public/js/lib/hyper.min.js
vendored
2
frappe/public/js/lib/hyper.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue