dojo / widgets

:rocket: Dojo - UI widgets.
https://widgets.dojo.io
Other
89 stars 65 forks source link

Custom element definitions throw errors based on order they are included on the page #395

Closed maier49 closed 6 years ago

maier49 commented 6 years ago

If the radio custom element definition is included before the combo definition, the following errors is logged in the console:

Uncaught TypeError: (0 , n(...).default) is not a function
    at Object.96 (combo-box.js:8)
    at t (widget-core.js:8)
    at window.dojoWebpackJsonp_dojo2_custom_element_showcase (widget-core.js:8)
    at window.dojoWebpackJsonp_dojo2_custom_element_showcase (widget-core.js:8)
    at combo-box.js:8
96 @ combo-box.js:8
t @ widget-core.js:8
window.dojoWebpackJsonp_dojo2_custom_element_showcase @ widget-core.js:8
window.dojoWebpackJsonp_dojo2_custom_element_showcase @ widget-core.js:8
(anonymous) @ combo-box.js:8

The same occurs with many other combinations of elements. Changing the order resolves the errors

dylans commented 6 years ago

Fixed with the RC1 custom elements refactor.