Comments (1)
Rewrote most of the panel field component where I encountered this problem. Now, the components making up the field component have clearer responsibilities and do not rely on any changeable outside state, except the value property, of course.
Starting the field component before 4.0.0-alpha.5, I was using a <k-drawer>
component inside the field template. This made it possible to pass values from the parent field component into components rendered by the drawer using slots
and properties.
Adapting the field to the $panel.drawer.open
method, I passed down some of these props into the options object, expecting them to stay reactive within the drawer.
// From within the Field component
this.$panel.drawer.open({
component: "k-custom-field-drawer",
props: {
fieldLoadingState: this.loading,
value: this.value,
…
}
})
The magic, making value a reactive property of the drawer components seems to happen here and is only applied to props.value
.
kirby/panel/src/panel/drawer.js
Lines 63 to 68 in 6490609
from kirby.
Related Issues (20)
- Html tags are not removed when the block type is changed. HOT 3
- Writer: non-breaking spaces cause endless "Revert" state HOT 10
- Small typo in German translation HOT 1
- Kirby 4 New Link-Field not showing all files from a page HOT 1
- Inconsistent behaviour with where clause in database when parameter is integer HOT 6
- Markdown does not allow nested list within ordered list HOT 1
- Dialogs: props not reactive
- createTable only supports a limited set of column types
- Table layout has super wide column for thumbnail and status at smaller width HOT 1
- License details table not visible in dialog
- hook 'user.changeRole:after' fails when args are named differently HOT 1
- Date/time field: unexpected results for arbitrary formats HOT 6
- Translation of custom panel menu labels
- [K4] 1Password in Safari triggers `undefined is not an object (evaluating 'i.form')` error on TOTP form HOT 9
- [Panel] Keep title when switching template in create dialog
- can't `parse_url()` for creating URIs that use pagination logic HOT 3
- Can't override Title label in pages section table layout
- Add your own thumb generator not working HOT 1
- $site->findPageOrDraft() does not work for nested drafts
- Tags field: tags not split when pasted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kirby.