fix(input directive): only apply textInput directive when appropriate