apply typeahead before focus and setCursorPosition

also move placeholder classes back to render method
placeholder classes must be applied after typeahead