File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
tooltip/__tests__/__snapshots__ Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,11 @@ export function mergeProps () {
252
252
}
253
253
254
254
function isValidElement ( element ) {
255
- return element && typeof element === 'object' && ( 'componentOptions' in element && 'context' in element )
255
+ return element &&
256
+ typeof element === 'object' &&
257
+ 'componentOptions' in element &&
258
+ 'context' in element &&
259
+ element . tag !== undefined // remove text node
256
260
}
257
261
258
262
export {
Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ exports[`renders ./components/tooltip/demo/arrow-point-at-center.md correctly 1`
4
4
5
5
exports [` renders ./components/tooltip/demo/auto-adjust-overflow.md correctly 1` ] = ` <div style = " overflow: hidden; position: relative; padding: 24px; border: 1px solid #e9e9e9;" ><button type = " button" class = " ant-btn ant-btn-default" ><span >Adjust automatically / 自动调整</span ></button > <br > <button type = " button" class = " ant-btn ant-btn-default" style = " margin-top: 10px;" ><span >Ingore / 不处理</span ></button ></div >`;
6
6
7
- exports[`renders ./components/tooltip/demo/basic.md correctly 1`] = `undefined`;
7
+ exports[`renders ./components/tooltip/demo/basic.md correctly 1`] = `
8
+ <span class = " " >
9
+ Tooltip will show when mouse enter.
10
+ </span >
11
+ `;
8
12
9
13
exports[`renders ./components/tooltip/demo/placement.md correctly 1`] = `
10
14
<div id = " components-a-tooltip-demo-placement" >
You can’t perform that action at this time.
0 commit comments