Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复BrnStepInputFormItem更新值时设置非法的TextSelection导致光标错位的问题 Close #235 #239

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

jixiaoyong
Copy link
Contributor

【问题描述】
用户手动输入文本内容时光标偏移导致无法正常输入文本。
详见issue#235

【问题原因】
在更新TextFiled值的时候,以及检查输入值是否在合法范围的时候,设置了非法的TextSelection

【修改内容】
在set _value()以及RangeLimitedTextInputFormatter.formatEditUpdate()的时候确保生成正确的TextSelection

【测试】
自测在以下情况正常工作:

  1. 使用加减按钮操作
  2. 手动在输入框文本末尾增加内容
  3. 手动在输入框文本内部增加内容
  4. 手动同时删除/插入多个文本

@zhoujuanjuan zhoujuanjuan merged commit 562aa41 into LianjiaTech:2.10.x Jun 16, 2022
violinday added a commit that referenced this pull request Jul 8, 2022
* 3.x:
  update chnagelist and sync documents (#270)
  fix: 修复 BrnDialog  ThemeData 不生效的问题 (#262)
  perf: 删除未使用的 Provider 库依赖 (#258)
  fix: 修复 BrnSmallOutlineButton fontWeight 不生效的 bug. (#256)
  perf: 优化 BrnDatePicker 组件文档 (#257)
  perf: 优化完善 BrnProgressBarChart  组件文档 (#253)
  feat: BrnCalendarView 时间范围选择支持选择同一天。 (#251)
  fix: 修复 BrnBigMainButton 圆角、fontSize 通过主题配置不生效的问题。 (#252)
  fix: upgrade photo_view version to 0.14.0 (#254)
  perf: 优化 BrnCommonCardTitle 组件文档,图片与示例代码保持一致 (#255)
  BrnAddLabel support theme config (#250)
  BrnSmallOutlineButton使lineColor生效 (#244)
  form add attribute backgroundColor and support theme config (#246)
  fix: 修复BrnStepInputFormItem更新值时设置非法的TextSelection导致光标错位的问题 Fixes #235 (#239)
  fix #212 (#219)
  fix: warning in flutter3.0 (#232)
  update some docs (#210)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants