Code Monkey home page Code Monkey logo

custom-alert's People

Contributors

rizzen59 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

custom-alert's Issues

Not take account focus on cancel button

Hello,

I have a case that cancel button have to be the default button selected in case of press on enter button.

I would like to create Pullrequest so as to send my solution but i can't.

I modified js to add this block code for keynum == 13

if (document.getElementById("customconfirm").style.display == "block"){
	var focusButton = document.activeElement;
	if(focusButton !== null && focusButton.classList.contains("button-cancel")){
		window.customconfirm.cancel();
	} else {						
		window.customconfirm.done();
	}
}

Blocks all text input from the keyboard (e.g. to an HTML input field)

After using custom alert in my web app and finding that all text input from the keyboard was blocked, I downloaded the zip archive of all the files from this repo, and in the demo page added in a simple html form with a text input after the body tag in the index.html of the demo page, so it looks like:

<body>
<form>
<input type="text">
</form>
...

etc...
After you've clicked through the demo alerts, you can click in the form field to activate it, but all keyboard input is ignored - nothing comes up...

Custom-alert is great, thanks for making it, just needs couple of problems fixed :)

Referência para aquivos incorreta

Baixei o exemplo e vi que a referência no html está como "...customAlerts.css", enquanto o aquivo é "customAlert.css", o js está na mesma.

Error en custom-alert.js !!

Line 27 : document.body.appendChild(div);

custom-alert.js:27 Uncaught TypeError: Cannot read property 'appendChild' of null

Problema com input type submit

Estou usando faces e preciso colocar a confirmation em um input type submit o problema é que este meu input tem um evento onclick onde tenho este exemplo

Mas não consigo ter o return do confirm o submit ocorre antes de escolher a opção.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.