mirror of
https://github.com/maputnik/editor.git
synced 2026-08-25 22:47:39 +00:00
remove unneeded 0 by making the key unique
This commit is contained in:
@@ -266,7 +266,7 @@ describe("layers", () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
bgId = createBackground();
|
bgId = createBackground();
|
||||||
when.click("layer-list-item:background:" + bgId);
|
when.click("layer-list-item:background:" + bgId);
|
||||||
when.click("spec-field:background-color", 0);
|
when.click("spec-field:background-color");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should update style in local storage", () => {
|
it("should update style in local storage", () => {
|
||||||
|
|||||||
@@ -399,7 +399,7 @@ export default class FieldFunction extends React.Component<FieldFunctionProps, F
|
|||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
return <div className={propClass} data-wd-key={"spec-field:"+this.props.fieldName}>
|
return <div className={propClass} data-wd-key={"spec-field-container:"+this.props.fieldName}>
|
||||||
{specField}
|
{specField}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user