Skip to content

Commit 47456ff

Browse files
authored
Merge branch 'master' into fix-rn-elif
2 parents ebfaf5c + 8563775 commit 47456ff

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

packages/api-proxy/src/platform/api/create-intersection-observer/rnIntersectionObserver.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ class RNIntersectionObserver {
201201

202202
// 计算节点的rect信息
203203
_measureTarget (isInit = false) {
204+
if (!this.observerRefs || !this.relativeRef) {
205+
return
206+
}
204207
Promise.all([
205208
this._getReferenceRect(this.observerRefs),
206209
this._getReferenceRect(this.relativeRef)

packages/webpack-plugin/lib/template-compiler/compiler.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -764,9 +764,7 @@ function parse (template, options) {
764764

765765
const children = currentParent.children
766766

767-
const isTextLikeParent = currentParent.tag === 'text' || currentParent.tag === 'mpx-text' || currentParent.tag === 'Text' || currentParent.tag === 'mpx-simple-text'
768-
769-
if (!isTextLikeParent) {
767+
if (currentParent.tag !== 'text') {
770768
text = text.trim()
771769
} else {
772770
text = text.trim() ? text : ''

0 commit comments

Comments
 (0)