Skip to content

Commit

Permalink
Revert "FIO-7466: Fixed an issue where code inside tolltips will be e…
Browse files Browse the repository at this point in the history
…xecuted …" (#5489)

This reverts commit 2209bc1.
  • Loading branch information
lane-formio authored Jan 31, 2024
1 parent f49323b commit 5bf7649
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 41 deletions.
2 changes: 1 addition & 1 deletion src/components/_classes/component/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ export default class Component extends Element {
placement: 'right',
zIndex: 10000,
interactive: true,
content: this.t(this.sanitize(tooltipText), { _userInput: true }),
content: this.t(tooltipText, { _userInput: true }),
});
}
});
Expand Down
14 changes: 0 additions & 14 deletions src/components/_classes/component/Component.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { comp1 } from './fixtures';
import _merge from 'lodash/merge';
import comp3 from './fixtures/comp3';
import comp4 from './fixtures/comp4';
import comp5 from './fixtures/comp5';

describe('Component', () => {
it('Should create a Component', (done) => {
Expand Down Expand Up @@ -357,17 +356,4 @@ describe('Component', () => {
.catch(done);
});
});

it('Should not execute code inside Tooltips/Description', (done) => {
const formElement = document.createElement('div');
const form = new Webform(formElement);

form.setForm(comp5).then(() => {
setTimeout(() => {
assert.equal(window._ee, undefined, 'Should not execute code inside Tooltips/Description');
done();
}, 200);
})
.catch(done);
});
});
24 changes: 0 additions & 24 deletions src/components/_classes/component/fixtures/comp5.js

This file was deleted.

3 changes: 1 addition & 2 deletions src/components/_classes/component/fixtures/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ import comp1 from './comp1';
import comp2 from './comp2';
import comp3 from './comp3';
import comp4 from './comp4';
import comp5 from './comp5';
export { comp1, comp2, comp3, comp4, comp5 };
export { comp1, comp2, comp3, comp4 };

0 comments on commit 5bf7649

Please sign in to comment.