components are skiping the parent priority when running on build mode to find their width
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 11.8k
- 派生
- 7.9k
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 11
描述
that's basically it, the issue is described there, more information about it:
in the following structure, where the input has a width of 85% it is taking the width of the nth parent instead of the direct one.
given this structure the input element is given the relative width according to the width of the div with class login-content container ->
<div class="width:100vw">
<div class='width:50%'>
<div class= 'width:100%'>
<input class='width:85%'
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 中的嵌套宽度示例开始,使用 React 文档站点在 build 模式下复现该行为。跟踪 input 的宽度如何通过其父元素解析;完成标准是 input 使用直接父元素的宽度,而不是第 n 个祖先元素的宽度。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100