fix: reset toolbar 'search' button when dialog closed by escape