Skip to content

Commit

Permalink
use update instead of init in markdown bindingHandler (#1279)
Browse files Browse the repository at this point in the history
  • Loading branch information
patst authored Apr 28, 2021
1 parent 9850f04 commit 2b85a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bindingHandlers/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface MarkdownConfig {


ko.bindingHandlers["markdown"] = {
init: (element: HTMLElement, valueAccessor: () => string | MarkdownConfig): void => {
update: (element: HTMLElement, valueAccessor: () => string | MarkdownConfig): void => {
const config = ko.unwrap(valueAccessor());
const htmlObservable = ko.observable();

Expand Down

0 comments on commit 2b85a7f

Please sign in to comment.