mirror of
https://github.com/maputnik/editor.git
synced 2026-06-09 16:57:26 +00:00
Bring back title
This commit is contained in:
@@ -12,6 +12,7 @@ export type InputStringProps = {
|
|||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
spellCheck?: boolean
|
spellCheck?: boolean
|
||||||
'aria-label'?: string
|
'aria-label'?: string
|
||||||
|
title?: string
|
||||||
};
|
};
|
||||||
|
|
||||||
type InputStringState = {
|
type InputStringState = {
|
||||||
@@ -72,6 +73,7 @@ export default class InputString extends React.Component<InputStringProps, Input
|
|||||||
style: this.props.style,
|
style: this.props.style,
|
||||||
value: this.state.value === undefined ? "" : this.state.value,
|
value: this.state.value === undefined ? "" : this.state.value,
|
||||||
placeholder: this.props.default,
|
placeholder: this.props.default,
|
||||||
|
title: this.props.title,
|
||||||
onChange: (e: React.BaseSyntheticEvent<Event, HTMLInputElement, HTMLInputElement>) => {
|
onChange: (e: React.BaseSyntheticEvent<Event, HTMLInputElement, HTMLInputElement>) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
editing: true,
|
editing: true,
|
||||||
|
|||||||
@@ -316,6 +316,7 @@ export default class DataProperty extends React.Component<DataPropertyProps, Dat
|
|||||||
<div className="maputnik-data-spec-property-input">
|
<div className="maputnik-data-spec-property-input">
|
||||||
<InputString
|
<InputString
|
||||||
value={this.props.value?.property}
|
value={this.props.value?.property}
|
||||||
|
title={"Input a data property to base styles off of."}
|
||||||
onChange={propVal => this.changeDataProperty("property", propVal)}
|
onChange={propVal => this.changeDataProperty("property", propVal)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user