fix(teleport): should only force remove teleport when not disabled

fix #2323
This commit is contained in:
Evan You
2020-10-09 09:08:59 -04:00
parent 54ed7592e4
commit b0931dcaba
2 changed files with 11 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ export interface TeleportProps {
export const isTeleport = (type: any): boolean => type.__isTeleport
const isTeleportDisabled = (props: VNode['props']): boolean =>
export const isTeleportDisabled = (props: VNode['props']): boolean =>
props && (props.disabled || props.disabled === '')
const resolveTarget = <T = RendererElement>(