InputField null refrence exception

hi guys

Im adding an InputField to my gui, its build somthing like this

ive got canvas->menu->emptygameObject->InputField
I cant see the placeholder and when Im trying to run and enter input into it, I get null refrence exception:

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.TextGenerator.get_characterCountVisible () (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/GUIElementBindings.cs:552)
UnityEngine.UI.InputField.GenerateCursor (System.Collections.Generic.List1 vbo, Vector2 roundingOffset) (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/InputField.cs:1620) UnityEngine.UI.InputField.OnFillVBO (System.Collections.Generic.List1 vbo) (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/InputField.cs:1591)
UnityEngine.UI.InputField.UpdateGeometry () (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/InputField.cs:1533)
UnityEngine.UI.InputField.Rebuild (CanvasUpdate update) (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/InputField.cs:1501)
UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () (at C:/BuildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/CanvasUpdateRegistry.cs:103)
UnityEditor.Undo:Internal_CallWillFlushUndoRecord()

how can i solve this

thanks in advance

Gal

it seems that the problem was that on the gameObject that contains the inputfield.

on that gameobject I had vertical layout group, an it seems that it blocked the input field, removing the layoutgroup solved the problem.