I am currently working on a calendar app using electron. In the app, I have created a menu to add new events and other features. One feature I want to implement is allowing users to enter the title of their event in a textbox/input field. However, when I try to create this element, I am unable to type anything into it. This is how I have set it up:
var inputField = document.createElement("input");
inputField.setAttribute("type", "text");
inputField.setAttribute("value","Title");
var container = document.getElementById("mainCont");
container.appendChild(inputField);
Despite my efforts, I cannot figure out why this is not working. I even attempted to wrap everything in a paragraph tag, but that did not resolve the issue.
If anyone has any insights or advice on what could be causing this problem, it would be greatly appreciated. Thank you in advance.