Skip to content

Commit

Permalink
use update instead of init in markdown bindingHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
patst committed Apr 27, 2021
1 parent e394f10 commit 38eea24
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 38eea24

Please sign in to comment.