Kaynağa Gözat

revert how CustomEvent is checked

Keyur Shah 5 yıl önce
ebeveyn
işleme
7cf0fc366d

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/alpine-ie11.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/alpine-ie11.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/alpine.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/alpine.js.map


+ 2 - 2
src/directives/model.js

@@ -27,8 +27,8 @@ function generateModelAssignmentFunction(el, modifiers, expression) {
     }
 
     return (event, currentValue) => {
-        //check for non IE11. due to an issue where IE11 handles the event as a CustomEvent. The event should be undefined
-        if (event instanceof CustomEvent && !window.document.documentMode) {
+        //check for event.detail. due to an issue where IE11 handles the event as a CustomEvent. The event should be undefined
+        if (event instanceof CustomEvent && event.detail) {
             return event.detail
         } else if (el.type === 'checkbox') {
             // If the data we are binding to is an array, toggle it's value inside the array.

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor