Browse Source

Remove old and no longer needed component-id data tag applied by styleable helper

pull/2677/head
Andrew Kingston 5 years ago
parent
commit
8defbd1ed2
  1. 2
      packages/builder/cypress/support/commands.js
  2. 1
      packages/client/src/utils/styleable.js

2
packages/builder/cypress/support/commands.js

@ -145,7 +145,7 @@ Cypress.Commands.add("getComponent", componentId => {
.its("body")
.should("not.be.null")
.then(cy.wrap)
.find(`[data-component-id=${componentId}]`)
.find(`[data-id=${componentId}]`)
})
Cypress.Commands.add("navigateToFrontend", () => {

1
packages/client/src/utils/styleable.js

@ -52,7 +52,6 @@ export const styleable = (node, styles = {}) => {
// Applies a style string to a DOM node
const applyStyles = styleString => {
node.style = `${baseString}${styleString}`
node.dataset.componentId = componentId
}
// Applies the "normal" style definition

Loading…
Cancel
Save