Fix error for bind custom close button

Custom button close is not working if it included in modal body.
This fix is solve it's problem.