vitmalina / w2ui

UI widgets for modern apps. Data table, forms, toolbars, sidebar, tabs, tooltips, popups. All under 120kb (gzipped).
http://w2ui.com
MIT License
2.67k stars 727 forks source link

a regret related to object w2field('combo') in w2ui 2.0.x (nightly) (6/27/2024, 6:00:52 PM) #2537

Closed jankrnavek closed 4 months ago

jankrnavek commented 4 months ago

Current version w2ui 2.0.x (nightly) (6/27/2024, 6:00:52 PM) produces an error while typing into input of w2field('combo') . Older versions are ok. e.g. w2ui 2.0.x (nightly) (3/22/2024, 5:30:58 PM) H.

Console error:

w2ui_latest.es6.min.js:6723 Uncaught TypeError: Cannot read properties of undefined (reading 'spinner')
    at w2toolbar.change (w2ui_latest.es6.min.js:6723:15)
    at HTMLInputElement.<anonymous> (w2ui_latest.es6.min.js:2752:17)
    at w2ui_latest.es6.min.js:722:7
    at w2ui_latest.es6.min.js:577:5
    at Array.forEach (<anonymous>)
    at Query.each (w2ui_latest.es6.min.js:576:15)
    at Query.trigger (w2ui_latest.es6.min.js:721:9)
    at w2ui_latest.es6.min.js:21313:11
    at w2base.<anonymous> (w2ui_latest.es6.min.js:4631:6)
    at w2base.trigger (w2ui_latest.es6.min.js:164:19)
l = query(this.box)
        .find('#tb_' + this.name + '_item_' + w2utils.escapeId(e))
        .find('input.w2ui-toolbar-input'),
    r =
        (null == (t = t instanceof HTMLInputElement ? t.value : t) && (t = l.val()),
        (!s.input.spinner &&                   // ERROR LINE POINTED TO IN CONSOLE`S ERROR
            null == s.input.min &&
            null == s.input.max &&
            null == s.input.step) ||
            (t = parseFloat(t)),
        null != s.input?.suffix &&