Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rel dropdown is not hiding if availableRels array is empty #16

Open
khanakia opened this issue Oct 18, 2022 · 1 comment
Open

Rel dropdown is not hiding if availableRels array is empty #16

khanakia opened this issue Oct 18, 2022 · 1 comment

Comments

@khanakia
Copy link

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,
    }
  },
@gajendrajena
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants