Skip to content

The doc about trigger option output does not match actual code. #67

@oklas

Description

@oklas

The doc about trigger option output does not match actual code.

The doc says that item must be unique. And the item unique id is received as result of calling function specified in trigger option output. This function must return object with optional field named key wich will be considered as item unique id. Doc declares a prototype:

      output?: (
        item: Object | string,
        trigger?: string
      ) =>
        | {|
            key?: ?string,
            text: string,
            caretPosition: "start" | "end" | "next" | number
          |}
        | string,

But the code currently ignore field key from object returned by this function. Same time code
actually use field key of item itself instead of result of that function in the line:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions