We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86dc5ea commit 2fe797eCopy full SHA for 2fe797e
src/Panel.vue
@@ -299,7 +299,7 @@
299
if (this.headerContent) {
300
const panelHeaderText = jQuery(this.headerContent).wrap('<div></div>').parent().find(':header').text();
301
if (panelHeaderText) {
302
- this.$refs.cardContainer.setAttribute('id', string(panelHeaderText).slugify().toString());
+ this.$refs.cardContainer.setAttribute('id', String(panelHeaderText).trim().toLowerCase().replace(/\s+/g, '-'));
303
}
304
} else if (this.$refs.headerWrapper.innerHTML) {
305
const header = jQuery(this.$refs.headerWrapper.innerHTML).wrap('<div></div>').parent().find(':header');
0 commit comments