Fix keepScrollPosition on condensed messages
This commit is contained in:
parent
893d59e7c4
commit
7d7005c8af
@ -5,7 +5,7 @@
|
|||||||
<span class="from" />
|
<span class="from" />
|
||||||
<span
|
<span
|
||||||
class="content"
|
class="content"
|
||||||
@click="isCollapsed = !isCollapsed">{{ condensedText }}<button
|
@click="onCollapseClick">{{ condensedText }}<button
|
||||||
class="toggle-button"
|
class="toggle-button"
|
||||||
aria-label="Toggle status messages" /></span>
|
aria-label="Toggle status messages" /></span>
|
||||||
</div>
|
</div>
|
||||||
@ -29,6 +29,7 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
network: Object,
|
network: Object,
|
||||||
messages: Array,
|
messages: Array,
|
||||||
|
keepScrollPosition: Function,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -91,5 +92,11 @@ export default {
|
|||||||
return text;
|
return text;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
|
onCollapseClick() {
|
||||||
|
this.isCollapsed = !this.isCollapsed;
|
||||||
|
this.keepScrollPosition();
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user