問題タブ [mention]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
672 参照

flutter - flutter test enterText on widget extending EditableText "Bad state: No element" : building editable text for mention

I have a class that extends EditableText, which provides styled editing - colour spans and so on.

The parent widget has a bool flag to use default TextInput or the custom one that extends EditableText.

Testing works fine for the default one:

however, if I do the same on a page where Mention uses the custom input, the test fails as it cannot find a TextInput - as there isn't one.

Error:

Bad state: No element

How Do you use enterText on a widget that extends EditableText? Or something similar?