Input bug

Your Work - CodePen

why window style be used to input?how to remove the X in input?

Hahaha - that is fun. The InputText() extends a Window() to handle scrolling. I suppose that we should disable style to the Window when we make it... you know what... I bet we did disable it but it is the third last parameter and maybe we changed the parameters of Window and did not think to adjust the hard coded parameters in the TextInput. Will have a look.

No, we passed style through from the TextInput() style parameter. So... if we got the right parameter order, then you can turn off style on the Window by turning off style on the TextInput... but... we might want to style the TextInput. Probably just don't set the Window style before you make a TextInput is the easiest solution.

in TextInput,i set style=false,don't have any effect

Thanks - just checked it, we were missing resizeBoundary, resizeVisible, continuous that had been inserted before style.

I think we got it...

STYLE = {Window:{close:true}}
new TextInput({style:false}).center()

now hides the x

SOLVED