Commit c2db6673 authored by Réda Housni Alaoui's avatar Réda Housni Alaoui Committed by JC Brand

Shadow dom: TypeError: Cannot read property 'parentElement' of null caused by...

Shadow dom: TypeError: Cannot read property 'parentElement' of null caused by MinimizedChatsToggleView
parent 5f0a0138
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
- #1579: Trim spaces at the beginning and end of a JID (when adding contact) - #1579: Trim spaces at the beginning and end of a JID (when adding contact)
- #1585: Upload files by pasting from clipboard - #1585: Upload files by pasting from clipboard
- #1586: Not possible to kick someone with a space in their nickname - #1586: Not possible to kick someone with a space in their nickname
- Bugfix: "Cannot read property 'parentElement' of null" in shadow dom
### Breaking changes ### Breaking changes
......
...@@ -530,7 +530,9 @@ converse.plugins.add('converse-minimize', { ...@@ -530,7 +530,9 @@ converse.plugins.add('converse-minimize', {
_converse.MinimizedChatsToggleView = Backbone.NativeView.extend({ _converse.MinimizedChatsToggleView = Backbone.NativeView.extend({
el: '#toggle-minimized-chats', _setElement (){
this.el = _converse.root.querySelector('#toggle-minimized-chats');
},
initialize () { initialize () {
this.model.on('change:num_minimized', this.render, this); this.model.on('change:num_minimized', this.render, this);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment