Open Omzig opened 4 days ago
Same as #3991. Closing that one because this includes more info. The MUI components are more than just a single HTML component at times so adding an attribute on component itself won't work for most things. I will likely need to add a -Attributes parameter and pass it through to the react component properly to get the input tag updated correctly.
As a workaround, I was able to use Invoke-UDJavascript
to use JS's setAttribute()
function and update the attributes after the DOM is loaded:
Invoke-UDJavascript -JavaScript 'document.getElementById("inputWirelessNumber").setAttribute("type", "tel");'
You should be able to use this as well until the feature is out to manipulate properties like that.
Description of Issue
As a developer, i want to add an attribute to my input element so that i can turn off autocomplete or maybe do something else to the component.
Assumptions:
The resulting html looks like this, it is missing
autocomplete="off"
:The hash looks like this:
Version
4.4.1
Severity
Medium
Hosting Method
MSI (Windows Service)
Operating System
Windows
Database
LiteDB
Licensed
Yes
Features
No response
Additional Environment data
No response
Screenshots/Animations
No response