ivkan/ts-select2

Item selection rendering isn't getting ignoed by custom escapeMarkup option

thinkryan opened this issue · 2 comments

Setting the escapeMarkup to simply return markup works for the formatting of the select items themselves, however when utilizing a custom HTML implementation for templateSelection, it still gives unformatted HTML.

This appears mostly from the absence of formatResult in TsSelect2 as opposed to Select2 which utilizes this to format the results of the output.

ivkan commented

Hey! Sorry for not answering quickly.
In Select2, during migration, the "formatResult" method was renamed to "templateResult". Link to documentation.
The "templateResult" method is also available in TsSelect2. Will this solve the problem for you?