Announcements
In D365 PCF Control, when I am using the Fluent UI Text field and I assign a value property to it with the input property (bound), that field does not respond to long press, like if I press the 'a' button for a long time, it will show a character only once. The same goes with backspace.
Hello,
Can you please provide the code of your React component? Without the code it will be hard to analyze what's wrong there.
in handleInputChange i am assigning newvalue to this._value
Can you please provide the code of your "textBox" react component?
This is the only code for the TextBox control. For TextBox control, I have used FluentUI and const textFieldProp to assigning all properties of control.in PCF init, updateView, and getOutputs I am just getting value from context and updating the bound property.I am just trying to create a custom control for Textbox in which I can provide CSS as I need.
Could you please help if you know the solution. TextField is working fine, it is just that long press is not working.
What does this.handleInputChange look like?
In that method i am updating the property
private handleInputChange = (_event: React.FormEvent<HTMLInputElement | HTMLTextAreaElement>, newValue?: string) => { this._value = newValue ?? ""; this._notifyOutputChanged(); }
public updateView(context: ComponentFramework.Context<IInputs>): void { this.RenderControl(); } public getOutputs(): IOutputs { return { PCF_SingleLine_TextBox: this._value }; }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 551
WarrenBelz 430 Most Valuable Professional
Valantis 298