Made the clear button work for the restricted inputs. Thanks to David Foster\!