Details polyfill: Fixed event handling issue