Skip to content

Commit

Permalink
Merge branch '8.3' into bugfix/remove-ui-script-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Jul 19, 2024
2 parents 0dffdf5 + fda27d7 commit 2d46ef2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Resources/Private/Translations/es/Main.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@
</trans-unit>
<trans-unit id="invalidValue" xml:space="preserve">
<source>Invalid value</source>
<target state="translated">Valor no válido</target>
<target state="translated">Valor incorrecto</target>
</trans-unit>
</body>
</file>
Expand Down
10 changes: 9 additions & 1 deletion packages/neos-ui-guest-frame/src/initializePropertyDomNode.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {$get, $contains} from 'plow-js';

import {actions} from '@neos-project/neos-ui-redux-store';
import {actions, selectors} from '@neos-project/neos-ui-redux-store';
import {validateElement} from '@neos-project/neos-ui-validators';

import {getGuestFrameWindow, closestContextPathInGuestFrame} from './dom';
Expand Down Expand Up @@ -74,6 +74,14 @@ export default ({store, globalRegistry, nodeTypesRegistry, inlineEditorRegistry,
actions.Changes.persistChanges([change])
),
onChange: value => {
const node = selectors.CR.Nodes.byContextPathSelector(contextPath)(store.getState());
if (node) {
const oldValue = node.properties[propertyName];
if (oldValue === value) {
return;
}
}

const validationResult = validateElement(value, $get(['properties', propertyName], nodeType), globalRegistry.get('validators'));
// Update inline validation errors
store.dispatch(
Expand Down

0 comments on commit 2d46ef2

Please sign in to comment.