fix(input): apply directives to only suitable inputs