added hook to disable input element with function check. Returns true, but can be overwritten by subclass