Fixes the accordion resetting when you clear the box and click off the input