Git Product home page Git Product logo

Comments (5)

Hanks10100 avatar Hanks10100 commented on May 22, 2024

Please offer a complete example on http://dotwe.org/vue

from incubator-weex.

tody123 avatar tody123 commented on May 22, 2024

for more example see https://issues.apache.org/jira/browse/WEEX-612

from incubator-weex.

tody123 avatar tody123 commented on May 22, 2024

发现只在默认只输入一个字符才会出现这个bug。应该原生的Edittext 在输入值setValue会触犯onTextChanged事件,weex在setValue时候通过mIgnoreNextOnInputEvent变量对这种情况进行了过滤从处理。原因是AbstractEditComponent.java文件中当删除一个字符时候会触犯onTextChanged事件,
public void onTextChanged(CharSequence s, int start, int before, int count) { if (mIgnoreNextOnInputEvent) { mIgnoreNextOnInputEvent = false; return; } if (mBeforeText.equals(s.toString())) { return; }
当删除一个字符时候 ,这时候mBeforeText.equals(s.toString()) 成立都是空值,所以返回不触发事件。
可修改如:
if (mIgnoreNextOnInputEvent) { mIgnoreNextOnInputEvent = false; mBeoreText = s.toString(); return; }

已提交pull request:
#1522

from incubator-weex.

tody123 avatar tody123 commented on May 22, 2024

@Hanks10100 a complete example on http://dotwe.org/vue/5064d32097f7242f97dfcc644ab8f538

from incubator-weex.

Hanks10100 avatar Hanks10100 commented on May 22, 2024

The PR has been merged. #1522

from incubator-weex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.