uni-popup 组件配合 rich-text组件自定义内联样式导致页面卡死
- Dominant language
- JavaScript
- Stars
- 2.1k
- Forks
- 661
- PR merge metrics
- No merged PRs in 30d
Description
复现代码:
`
`
环境配置:
node: 16.14.2
npm:8.5.0
vite: 4.0.3
@dcloudio 版本:3.0.0-alpha-3080520230616001(当前最新的版本, 老版本:3.0.0-alpha-3040220220310005没有这个问题)
问题描述:在h5生产构建打包后
rich-text组件里面自定义style样式,导致出现弹窗就卡死页面,浏览器上面未报错
去掉`style="text-align: center;"` 后正常
本地开发环境没有这个问题,
目前解决方案是采用class,或者直接把样式定义到父级上面
期望:生产环境打包后rich-text 组件能自定义style样式
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the provided uni-popup and rich-text example in an H5 production build using the listed versions, then compare it with the development build and the older @dcloudio version. Inspect the uni-popup and rich-text behavior around inline styles; done means the popup opens without freezing the page when text-align is set inline.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100