Browse Source

Change bindable properties order

master
Andrew Kingston 5 years ago
parent
commit
0637168ab9
  1. 6
      packages/builder/src/builderStore/dataBinding.js
  2. 2
      packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyControl.svelte

6
packages/builder/src/builderStore/dataBinding.js

@ -31,11 +31,11 @@ export const getBindableProperties = (asset, componentId) => {
const deviceBindings = getDeviceBindings() const deviceBindings = getDeviceBindings()
const stateBindings = getStateBindings() const stateBindings = getStateBindings()
return [ return [
...stateBindings,
...deviceBindings,
...urlBindings,
...contextBindings, ...contextBindings,
...urlBindings,
...stateBindings,
...userBindings, ...userBindings,
...deviceBindings,
] ]
} }

2
packages/builder/src/components/design/PropertiesPanel/PropertyControls/PropertyControl.svelte

@ -27,7 +27,7 @@
if (!nested) { if (!nested) {
return bindings return bindings
} }
return [...(bindings || []), ...(componentBindings || [])] return [...(componentBindings || []), ...(bindings || [])]
} }
// Handle a value change of any type // Handle a value change of any type

Loading…
Cancel
Save