import { create, tsx } from '@dojo/framework/core/vdom';
import TextInput from '@dojo/widgets/text-input';
import Example from '../../Example';
const factory = create();
export default factory(function Basic() {
return (
<Example>
<TextInput>{{ label: 'Input label' }}</TextInput>
</Example>
);
});
Expected behavior:
Label color should switch to primary ONLY when input is focused.
Actual behavior:
Label color switches to primary when input is focused OR input has a value. The current setup uses the active input to determine the color of the label instead of focus.
Bug
Package Version: 8.0.0-pre
Code
Expected behavior:
Label color should switch to primary ONLY when input is focused.
Actual behavior:
Label color switches to primary when input is focused OR input has a value. The current setup uses the
active
input to determine the color of the label instead of focus.