Bring back title

This commit is contained in:
HarelM
2023-12-22 10:06:57 +02:00
parent de777102e1
commit 1a7754c78d
2 changed files with 3 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ export type InputStringProps = {
disabled?: boolean
spellCheck?: boolean
'aria-label'?: string
title?: string
};
type InputStringState = {
@@ -72,6 +73,7 @@ export default class InputString extends React.Component<InputStringProps, Input
style: this.props.style,
value: this.state.value === undefined ? "" : this.state.value,
placeholder: this.props.default,
title: this.props.title,
onChange: (e: React.BaseSyntheticEvent<Event, HTMLInputElement, HTMLInputElement>) => {
this.setState({
editing: true,

View File

@@ -316,6 +316,7 @@ export default class DataProperty extends React.Component<DataPropertyProps, Dat
<div className="maputnik-data-spec-property-input">
<InputString
value={this.props.value?.property}
title={"Input a data property to base styles off of."}
onChange={propVal => this.changeDataProperty("property", propVal)}
/>
</div>