trinhtam/editorjs-hyperlink

Rel dropdown is not hiding if availableRels array is empty

Opened this issue · 1 comments

availableRels | string[] | Available link rels, defaults to all rels.If empty array is provided, the control will be hidden and the default value applied.

Dropdown is not hidden it's still showing. I have this config

 hyperlink: {
    class: Hyperlink,
    config: {
      shortcut: 'CMD+L',
      target: '_blank',
      availableRels: [],
      validate: false,
    }
  },

And also the target dropdown is not hiding if availableTargets is blank.