Fix FLEX-33428. Proposed fix (adding clearFlag) doesn't actually fix the root problem, it only works because it causes the component to use plain text rendering and the test case has plain text to render. This fix addresses a rather strange behavior in TextContainerManager (TCM). It assumes that existing TextLines belong to the same textflow. There is code in TCM's textFlow setter that attempts to remove existing TextLines when the textFlow is changed, but this bug scenario bypasses that and leaves a TextLine created at initialization by the plain text composer when the text hasn't been set yet. The fix remembers whether plain text or html text composition was last used and if switching, removes existing textfields. All tests in gumbo/components/FTETextField pass
1 file changed