Skip to content

Commit a5cc128

Browse files
author
mosuzi
authored
fix: fix that the compiled version fail to spread DOMRectList (#47)
1 parent 33956e7 commit a5cc128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Clamp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default {
126126
},
127127
getLines () {
128128
return Object.keys(
129-
[...this.$refs.content.getClientRects()].reduce(
129+
Array.prototype.slice.call(this.$refs.content.getClientRects()).reduce(
130130
(prev, { top, bottom }) => {
131131
const key = `${top}/${bottom}`
132132
if (!prev[key]) {

0 commit comments

Comments
 (0)