Fixed logic for filterTextInputs option

The logic did not involve textarea and select fields. Now the filterTextInputs option controls these elements too.