editorjs-hyperlink icon indicating copy to clipboard operation
editorjs-hyperlink copied to clipboard

Rel dropdown is not hiding if availableRels array is empty

Open khanakia opened this issue 3 years ago • 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,
    }
  },

khanakia avatar Oct 18 '22 05:10 khanakia

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

gajendrajena avatar Oct 24 '22 13:10 gajendrajena