1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-16 12:14:14 +02:00

Fix a linter bug in a semi-colon case (#1928)

This commit is contained in:
Jinxuan Zhu
2018-06-22 11:48:36 -04:00
committed by Ian Storm Taylor
parent 2652680850
commit 0322f7a1b8
2 changed files with 1 additions and 1 deletions

View File

@@ -59,7 +59,6 @@ function cloneFragment(event, value, fragment = value.fragment) {
// Remove any zero-width space spans from the cloned DOM so that they don't
// show up elsewhere when pasted.
// eslint-disable-next-line padding-line-between-statements
;[].slice.call(contents.querySelectorAll(ZERO_WIDTH_SELECTOR)).forEach(zw => {
const isNewline = zw.getAttribute(ZERO_WIDTH_ATTRIBUTE) === 'n'
zw.textContent = isNewline ? '\n' : ''