Hi Amresh,
This is intended behavior by Mendix. the "text field" in the modeler should not be read as an actual input field but as a widget. Every widget in Mendix is usually a <div> wrapper around visual elements (like in your case, an <input> textbox).
If you want to manipulate specific elements inside a widget you will have to change the stylesheet based on this setup, e.g.
.yourclass input {
display: "none";
}
Hi Amresh,
This is working as intended. If you want to specifically target your input field, you will have to create a class yourself. I am not sure how familiar you are with SASS (this Mendix7 how-to is a good start, shows which programs you need and such: https://docs.mendix.com/howto/guis/create-a-custom-theme-with-the-mendix-ui-framework, also helpful is this blogpost: http://www.mxblog.nl/2016/03/using-sass-with-mendix/), but you can easily create a class that lets you alter the (for instance) input field, which would look like:
.testClass {
input{
color: red;
}
}
Hope this is enough information to help you on your way!
EDIT: I see I took too long typing this answer, Joost's answer is of course correct as well. I'll leave my post here, as it contains some information to get you started :)