MCPcopy Create free account
hub / github.com/firebase/codelab-friendlychat-web / toggleButton

Function toggleButton

web/src/index.js:385–391  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

383 // Enables or disables the submit button depending on the values of the input
384 // fields.
385 function toggleButton() {
386 if (messageInputElement.value) {
387 submitButtonElement.removeAttribute('disabled');
388 } else {
389 submitButtonElement.setAttribute('disabled', 'true');
390 }
391 }
392
393 // Shortcuts to DOM Elements.
394 var messageListElement = document.getElementById('messages');

Callers 1

onMessageFormSubmitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected