Skip to content

[Modules] Trim function does not exist in IE 10-11  #2806

Closed
@TheSlider2

Description

@TheSlider2

Greetings,

I have an issue where IE 10-11 messes up my sexy admin tools.
I get an error about trim not being a valid function so i replaced it with "replace(/^\s+|\s+$/g, '')"

Error was reported on line 4246 ( semantic.js v1.12.3 )
real lines were 4249 and 4250

? $choice.html().trim()
: $choice.text().trim()

becomes

? $choice.html().replace(/^\s+|\s+$/g, '')
: $choice.text().replace(/^\s+|\s+$/g, '')

Didn't test much but no more errors + working tools = good enough.

I'll check if this was updated on 2.0 when i'll be upgrading next week.

Cheers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions