Oh perfect that would be so awesome.
I watched a bit deeper so its somethink like
state.term never get the value from state.termsList[index] where selected
there or maybe im completly wrong:
wp.element.createElement(H, {
label: b(“Terms”, “post-type-archive-mapping”),
options: this.state.termsList,
value: d,
onChange: function(e) {
t.props.setAttributes({ term: e })
,
t.get_latest_posts({ term: e })
}
}
I shut up now and let you do 🙂
Best regards
-
This reply was modified 7 years, 2 months ago by mhirsch95.