mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 10:41:13 +08:00
fix(react): building app for production now works correctly with vite (#24515)
resolves #24229
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { OverlayEventDetail } from '@ionic/core/components'
|
||||
import React from 'react';
|
||||
import React, { createElement } from 'react';
|
||||
|
||||
import {
|
||||
attachProps,
|
||||
@ -119,8 +119,8 @@ export const createInlineOverlayComponent = <PropType, ElementType>(
|
||||
* so conditionally render the component
|
||||
* based on the isOpen state.
|
||||
*/
|
||||
return React.createElement(tagName, newProps, (this.state.isOpen) ?
|
||||
React.createElement('div', {
|
||||
return createElement(tagName, newProps, (this.state.isOpen) ?
|
||||
createElement('div', {
|
||||
id: 'ion-react-wrapper',
|
||||
ref: this.wrapperRef,
|
||||
style: {
|
||||
|
Reference in New Issue
Block a user