Official Examples page broken after 1.12.0 release

Official Examples page broken after 1.12.0 release

mczajkmczajk Posts: 8Questions: 2Answers: 0

Hi all,
Official examples (https://datatables.net/examples/index and subpages) seem to be broken after release of version 1.12 - javascript part does not work, tables look like plain html table or do not render at all.

Browser console reports following errors:

Uncaught TypeError: Cannot read properties of undefined (reading 'value')
at site.js?=44555364a87fdd80f06fe495aa9139ce:454:206
at site.js?
=44555364a87fdd80f06fe495aa9139ce:289:299
at site.js?_=44555364a87fdd80f06fe495aa9139ce:289:326

Uncaught TypeError: Cannot set properties of undefined (setting 'forumUser')
at dynamic.php:1:24

site.js?_=44555364a87fdd80f06fe495aa9139ce:454

Answers

  • mczajkmczajk Posts: 8Questions: 2Answers: 0

    In following part kd has only 3 elements

    0: {type: 'integer', value: '1000'}
    1: {type: 'decimal', value: ','}
    2: {type: 'fraction', value: '1'}

    if (Intl) {
    var kd = (new Intl.NumberFormat).formatToParts(1000.1);
    Cd = kd[1].value;
    od = kd[3].value <====ERROR
    }

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • mczajkmczajk Posts: 8Questions: 2Answers: 0

    Hi,
    the problem is when you access examples page from browser with non-English primary language.

    I have Windows 10 21H2, my primary language is Polish. With that settings when I open any example, tables do not work properly. When I force browser language to English, it will work fine.

  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,949

    Is this the same question as this thread? Looks the same event though the usernames are different. Please see my in in the other thread.

    Kevin

  • mczajkmczajk Posts: 8Questions: 2Answers: 0
    edited May 2022

    Hi Kevin,
    yes, the problem is the same as in the other thread, but my post was referring to datatables.net examples, not my own application.

    I just ran a quick test with my local application and it is also failing after update to 1.12.0 if browser language is not English.

  • mczajkmczajk Posts: 8Questions: 2Answers: 0

    It looks like commit 77642aba563661aedf80132354b922fc582cf05a (Fix: IE11 was throwing an error with the new locale rendering for num) fixes the problem (although bug is not specific to IE11)

    When can we expect examples to use that version?

Sign In or Register to comment.