Fixed unable to generate buttons when events has a classNames property on Safari.